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

This commit is contained in:
Gani Georgiev
2023-06-27 14:45:04 +03:00
parent 1571ebe4eb
commit a672ab959f
11 changed files with 6336 additions and 6280 deletions
+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")