merged jsvm migrations and hooks and updated the ambient TS types location

This commit is contained in:
Gani Georgiev committed 2023-06-27 14:45:04 +03:00
1 parent 1571ebe4eb
commit a672ab959f
11 files changed
+6336 -6280

No files matched your search

+3
View File
@@ -22,6 +22,7 @@ func TestAutomigrateCollectionCreate(t *testing.T) {
{
migratecmd.TemplateLangJS,
`
/// <reference path="../pb_data/types.d.ts" />
migrate((db) => {
const collection = new Collection({
"id": "new_id",
@@ -194,6 +195,7 @@ func TestAutomigrateCollectionDelete(t *testing.T) {
{
migratecmd.TemplateLangJS,
`
/// <reference path="../pb_data/types.d.ts" />
migrate((db) => {
const dao = new Dao(db);
const collection = dao.findCollectionByNameOrId("test123");
@@ -372,6 +374,7 @@ func TestAutomigrateCollectionUpdate(t *testing.T) {
{
migratecmd.TemplateLangJS,
`
/// <reference path="../pb_data/types.d.ts" />
migrate((db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("test123")