diff --git a/packages/core/schematics/migrations.json b/packages/core/schematics/migrations.json index 30fd5090c3..aac7cb8d82 100644 --- a/packages/core/schematics/migrations.json +++ b/packages/core/schematics/migrations.json @@ -34,11 +34,6 @@ "version": "9-beta", "description": "Adds an Angular decorator to undecorated classes that have decorated fields", "factory": "./migrations/undecorated-classes-with-decorated-fields/index" - }, - "migration-v9-dynamic-queries": { - "version": "9-beta", - "description": "Removes the `static` flag from dynamic queries.", - "factory": "./migrations/dynamic-queries/index" } } } diff --git a/packages/core/schematics/test/BUILD.bazel b/packages/core/schematics/test/BUILD.bazel index c14f4c8010..f924396f97 100644 --- a/packages/core/schematics/test/BUILD.bazel +++ b/packages/core/schematics/test/BUILD.bazel @@ -5,6 +5,7 @@ ts_library( testonly = True, srcs = glob(["**/*.ts"]), data = [ + "test-migrations.json", "//packages/core/schematics:migrations.json", ], deps = [ diff --git a/packages/core/schematics/test/dynamic_queries_migration_spec.ts b/packages/core/schematics/test/dynamic_queries_migration_spec.ts index 31644d345f..d662024a75 100644 --- a/packages/core/schematics/test/dynamic_queries_migration_spec.ts +++ b/packages/core/schematics/test/dynamic_queries_migration_spec.ts @@ -20,7 +20,7 @@ describe('dynamic queries migration', () => { let previousWorkingDir: string; beforeEach(() => { - runner = new SchematicTestRunner('test', require.resolve('../migrations.json')); + runner = new SchematicTestRunner('test', require.resolve('./test-migrations.json')); host = new TempScopedNodeJsSyncHost(); tree = new UnitTestTree(new HostTree(host)); diff --git a/packages/core/schematics/test/test-migrations.json b/packages/core/schematics/test/test-migrations.json new file mode 100644 index 0000000000..684a6073e3 --- /dev/null +++ b/packages/core/schematics/test/test-migrations.json @@ -0,0 +1,9 @@ +{ + "schematics": { + "migration-v9-dynamic-queries": { + "version": "9-beta", + "description": "Removes the `static` flag from dynamic queries.", + "factory": "../migrations/dynamic-queries/index" + } + } +}