ember-codemod-pod-to-octane 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +112 -0
  3. package/bin/ember-codemod-pod-to-octane.js +36 -0
  4. package/package.json +62 -0
  5. package/src/index.js +28 -0
  6. package/src/migration/ember-addon/addon/component-classes.js +45 -0
  7. package/src/migration/ember-addon/addon/component-stylesheets.js +21 -0
  8. package/src/migration/ember-addon/addon/component-templates.js +21 -0
  9. package/src/migration/ember-addon/addon/index.js +11 -0
  10. package/src/migration/ember-addon/app/component-classes.js +21 -0
  11. package/src/migration/ember-addon/app/component-stylesheets.js +21 -0
  12. package/src/migration/ember-addon/app/component-templates.js +21 -0
  13. package/src/migration/ember-addon/app/index.js +11 -0
  14. package/src/migration/ember-addon/index.js +43 -0
  15. package/src/migration/ember-addon/tests/components.js +36 -0
  16. package/src/migration/ember-addon/tests/index.js +5 -0
  17. package/src/migration/ember-app/app/component-classes.js +45 -0
  18. package/src/migration/ember-app/app/component-stylesheets.js +21 -0
  19. package/src/migration/ember-app/app/component-templates.js +21 -0
  20. package/src/migration/ember-app/app/index.js +25 -0
  21. package/src/migration/ember-app/app/route-adapters.js +33 -0
  22. package/src/migration/ember-app/app/route-controllers.js +33 -0
  23. package/src/migration/ember-app/app/route-models.js +33 -0
  24. package/src/migration/ember-app/app/route-routes.js +33 -0
  25. package/src/migration/ember-app/app/route-serializers.js +33 -0
  26. package/src/migration/ember-app/app/route-stylesheets.js +21 -0
  27. package/src/migration/ember-app/app/route-templates.js +21 -0
  28. package/src/migration/ember-app/index.js +29 -0
  29. package/src/migration/ember-app/tests/components.js +36 -0
  30. package/src/migration/ember-app/tests/index.js +11 -0
  31. package/src/migration/ember-app/tests/route-controllers.js +75 -0
  32. package/src/migration/ember-app/tests/route-routes.js +69 -0
  33. package/src/migration/ember-engine/addon/component-classes.js +45 -0
  34. package/src/migration/ember-engine/addon/component-stylesheets.js +21 -0
  35. package/src/migration/ember-engine/addon/component-templates.js +21 -0
  36. package/src/migration/ember-engine/addon/index.js +19 -0
  37. package/src/migration/ember-engine/addon/route-controllers.js +33 -0
  38. package/src/migration/ember-engine/addon/route-routes.js +33 -0
  39. package/src/migration/ember-engine/addon/route-stylesheets.js +21 -0
  40. package/src/migration/ember-engine/addon/route-templates.js +21 -0
  41. package/src/migration/ember-engine/index.js +29 -0
  42. package/src/migration/ember-engine/tests/components.js +36 -0
  43. package/src/migration/ember-engine/tests/index.js +11 -0
  44. package/src/migration/ember-engine/tests/route-controllers.js +75 -0
  45. package/src/migration/ember-engine/tests/route-routes.js +69 -0
  46. package/src/migration/index.js +3 -0
  47. package/src/utils/ember-addon/app/components.js +17 -0
  48. package/src/utils/map-paths.js +15 -0
  49. package/src/utils/move-files.js +32 -0
@@ -0,0 +1,33 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteControllers(projectRoot) {
6
+ const oldPaths = glob.sync('app/**/controller.{js,ts}', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ if (oldPath.endsWith('.ts')) {
12
+ return mapPaths(oldPath, {
13
+ find: {
14
+ directory: 'app',
15
+ file: 'controller.ts',
16
+ },
17
+ replace(key) {
18
+ return `app/controllers/${key}.ts`;
19
+ },
20
+ });
21
+ }
22
+
23
+ return mapPaths(oldPath, {
24
+ find: {
25
+ directory: 'app',
26
+ file: 'controller.js',
27
+ },
28
+ replace(key) {
29
+ return `app/controllers/${key}.js`;
30
+ },
31
+ });
32
+ });
33
+ }
@@ -0,0 +1,33 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteModels(projectRoot) {
6
+ const oldPaths = glob.sync('app/**/model.{js,ts}', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ if (oldPath.endsWith('.ts')) {
12
+ return mapPaths(oldPath, {
13
+ find: {
14
+ directory: 'app',
15
+ file: 'model.ts',
16
+ },
17
+ replace(key) {
18
+ return `app/models/${key}.ts`;
19
+ },
20
+ });
21
+ }
22
+
23
+ return mapPaths(oldPath, {
24
+ find: {
25
+ directory: 'app',
26
+ file: 'model.js',
27
+ },
28
+ replace(key) {
29
+ return `app/models/${key}.js`;
30
+ },
31
+ });
32
+ });
33
+ }
@@ -0,0 +1,33 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteRoutes(projectRoot) {
6
+ const oldPaths = glob.sync('app/**/route.{js,ts}', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ if (oldPath.endsWith('.ts')) {
12
+ return mapPaths(oldPath, {
13
+ find: {
14
+ directory: 'app',
15
+ file: 'route.ts',
16
+ },
17
+ replace(key) {
18
+ return `app/routes/${key}.ts`;
19
+ },
20
+ });
21
+ }
22
+
23
+ return mapPaths(oldPath, {
24
+ find: {
25
+ directory: 'app',
26
+ file: 'route.js',
27
+ },
28
+ replace(key) {
29
+ return `app/routes/${key}.js`;
30
+ },
31
+ });
32
+ });
33
+ }
@@ -0,0 +1,33 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteSerializers(projectRoot) {
6
+ const oldPaths = glob.sync('app/**/serializer.{js,ts}', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ if (oldPath.endsWith('.ts')) {
12
+ return mapPaths(oldPath, {
13
+ find: {
14
+ directory: 'app',
15
+ file: 'serializer.ts',
16
+ },
17
+ replace(key) {
18
+ return `app/serializers/${key}.ts`;
19
+ },
20
+ });
21
+ }
22
+
23
+ return mapPaths(oldPath, {
24
+ find: {
25
+ directory: 'app',
26
+ file: 'serializer.js',
27
+ },
28
+ replace(key) {
29
+ return `app/serializers/${key}.js`;
30
+ },
31
+ });
32
+ });
33
+ }
@@ -0,0 +1,21 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteStylesheets(projectRoot) {
6
+ const oldPaths = glob.sync('app/!(components)/**/styles.css', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ return mapPaths(oldPath, {
12
+ find: {
13
+ directory: 'app',
14
+ file: 'styles.css',
15
+ },
16
+ replace(key) {
17
+ return `app/styles/${key}.css`;
18
+ },
19
+ });
20
+ });
21
+ }
@@ -0,0 +1,21 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteTemplates(projectRoot) {
6
+ const oldPaths = glob.sync('app/!(components)/**/template.hbs', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ return mapPaths(oldPath, {
12
+ find: {
13
+ directory: 'app',
14
+ file: 'template.hbs',
15
+ },
16
+ replace(key) {
17
+ return `app/templates/${key}.hbs`;
18
+ },
19
+ });
20
+ });
21
+ }
@@ -0,0 +1,29 @@
1
+ import { moveFiles } from '../../utils/move-files.js';
2
+ import { migrationStrategyForAppFolder } from './app/index.js';
3
+ import { migrationStrategyForTestsFolder } from './tests/index.js';
4
+
5
+ export function migrateEmberApp(options) {
6
+ const { projectRoot, testRun } = options;
7
+
8
+ const migrationStrategyApp = migrationStrategyForAppFolder(projectRoot);
9
+ const migrationStrategyTests = migrationStrategyForTestsFolder(projectRoot);
10
+
11
+ if (testRun) {
12
+ console.log({
13
+ migrationStrategyApp,
14
+ migrationStrategyTests,
15
+ });
16
+
17
+ return;
18
+ }
19
+
20
+ moveFiles({
21
+ migrationStrategy: migrationStrategyApp,
22
+ projectRoot,
23
+ });
24
+
25
+ moveFiles({
26
+ migrationStrategy: migrationStrategyTests,
27
+ projectRoot,
28
+ });
29
+ }
@@ -0,0 +1,36 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForComponents(projectRoot) {
6
+ const oldPaths = glob.sync(
7
+ 'tests/integration/components/**/component-test.{js,ts}',
8
+ {
9
+ cwd: projectRoot,
10
+ }
11
+ );
12
+
13
+ return oldPaths.map((oldPath) => {
14
+ if (oldPath.endsWith('.ts')) {
15
+ return mapPaths(oldPath, {
16
+ find: {
17
+ directory: 'tests/integration/components',
18
+ file: 'component-test.ts',
19
+ },
20
+ replace(key) {
21
+ return `tests/integration/components/${key}-test.ts`;
22
+ },
23
+ });
24
+ }
25
+
26
+ return mapPaths(oldPath, {
27
+ find: {
28
+ directory: 'tests/integration/components',
29
+ file: 'component-test.js',
30
+ },
31
+ replace(key) {
32
+ return `tests/integration/components/${key}-test.js`;
33
+ },
34
+ });
35
+ });
36
+ }
@@ -0,0 +1,11 @@
1
+ import { migrationStrategyForComponents } from './components.js';
2
+ import { migrationStrategyForRouteControllers } from './route-controllers.js';
3
+ import { migrationStrategyForRouteRoutes } from './route-routes.js';
4
+
5
+ export function migrationStrategyForTestsFolder(projectRoot) {
6
+ return new Map([
7
+ ...migrationStrategyForComponents(projectRoot),
8
+ ...migrationStrategyForRouteControllers(projectRoot),
9
+ ...migrationStrategyForRouteRoutes(projectRoot),
10
+ ]);
11
+ }
@@ -0,0 +1,75 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteControllers(projectRoot) {
6
+ /*
7
+ Case 1: Didn't pass the --pod flag, but configured { usePods: true } in .ember-cli
8
+ */
9
+ const oldPaths1 = glob.sync(
10
+ 'tests/unit/!(controllers)/**/controller-test.{js,ts}',
11
+ {
12
+ cwd: projectRoot,
13
+ }
14
+ );
15
+
16
+ const newPaths1 = oldPaths1.map((oldPath) => {
17
+ if (oldPath.endsWith('.ts')) {
18
+ return mapPaths(oldPath, {
19
+ find: {
20
+ directory: 'tests/unit',
21
+ file: 'controller-test.ts',
22
+ },
23
+ replace(key) {
24
+ return `tests/unit/controllers/${key}-test.ts`;
25
+ },
26
+ });
27
+ }
28
+
29
+ return mapPaths(oldPath, {
30
+ find: {
31
+ directory: 'tests/unit',
32
+ file: 'controller-test.js',
33
+ },
34
+ replace(key) {
35
+ return `tests/unit/controllers/${key}-test.js`;
36
+ },
37
+ });
38
+ });
39
+
40
+ /*
41
+ Case 2: Passed the --pod flag to Ember CLI
42
+ */
43
+ const oldPaths2 = glob.sync(
44
+ 'tests/unit/controllers/**/controller-test.{js,ts}',
45
+ {
46
+ cwd: projectRoot,
47
+ }
48
+ );
49
+
50
+ const newPaths2 = oldPaths2.map((oldPath) => {
51
+ if (oldPath.endsWith('.ts')) {
52
+ return mapPaths(oldPath, {
53
+ find: {
54
+ directory: 'tests/unit/controllers',
55
+ file: 'controller-test.ts',
56
+ },
57
+ replace(key) {
58
+ return `tests/unit/controllers/${key}-test.ts`;
59
+ },
60
+ });
61
+ }
62
+
63
+ return mapPaths(oldPath, {
64
+ find: {
65
+ directory: 'tests/unit/controllers',
66
+ file: 'controller-test.js',
67
+ },
68
+ replace(key) {
69
+ return `tests/unit/controllers/${key}-test.js`;
70
+ },
71
+ });
72
+ });
73
+
74
+ return [...newPaths1, ...newPaths2];
75
+ }
@@ -0,0 +1,69 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteRoutes(projectRoot) {
6
+ /*
7
+ Case 1: Didn't pass the --pod flag, but configured { usePods: true } in .ember-cli
8
+ */
9
+ const oldPaths1 = glob.sync('tests/unit/!(routes)/**/route-test.{js,ts}', {
10
+ cwd: projectRoot,
11
+ });
12
+
13
+ const newPaths1 = oldPaths1.map((oldPath) => {
14
+ if (oldPath.endsWith('.ts')) {
15
+ return mapPaths(oldPath, {
16
+ find: {
17
+ directory: 'tests/unit',
18
+ file: 'route-test.ts',
19
+ },
20
+ replace(key) {
21
+ return `tests/unit/routes/${key}-test.ts`;
22
+ },
23
+ });
24
+ }
25
+
26
+ return mapPaths(oldPath, {
27
+ find: {
28
+ directory: 'tests/unit',
29
+ file: 'route-test.js',
30
+ },
31
+ replace(key) {
32
+ return `tests/unit/routes/${key}-test.js`;
33
+ },
34
+ });
35
+ });
36
+
37
+ /*
38
+ Case 2: Passed the --pod flag to Ember CLI
39
+ */
40
+ const oldPaths2 = glob.sync('tests/unit/routes/**/route-test.{js,ts}', {
41
+ cwd: projectRoot,
42
+ });
43
+
44
+ const newPaths2 = oldPaths2.map((oldPath) => {
45
+ if (oldPath.endsWith('.ts')) {
46
+ return mapPaths(oldPath, {
47
+ find: {
48
+ directory: 'tests/unit/routes',
49
+ file: 'route-test.ts',
50
+ },
51
+ replace(key) {
52
+ return `tests/unit/routes/${key}-test.ts`;
53
+ },
54
+ });
55
+ }
56
+
57
+ return mapPaths(oldPath, {
58
+ find: {
59
+ directory: 'tests/unit/routes',
60
+ file: 'route-test.js',
61
+ },
62
+ replace(key) {
63
+ return `tests/unit/routes/${key}-test.js`;
64
+ },
65
+ });
66
+ });
67
+
68
+ return [...newPaths1, ...newPaths2];
69
+ }
@@ -0,0 +1,45 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForComponentClasses(projectRoot) {
6
+ const oldPaths = glob.sync('addon/components/**/component.{d.ts,js,ts}', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ if (oldPath.endsWith('.d.ts')) {
12
+ return mapPaths(oldPath, {
13
+ find: {
14
+ directory: 'addon/components',
15
+ file: 'component.d.ts',
16
+ },
17
+ replace(key) {
18
+ return `addon/components/${key}.d.ts`;
19
+ },
20
+ });
21
+ }
22
+
23
+ if (oldPath.endsWith('.ts')) {
24
+ return mapPaths(oldPath, {
25
+ find: {
26
+ directory: 'addon/components',
27
+ file: 'component.ts',
28
+ },
29
+ replace(key) {
30
+ return `addon/components/${key}.ts`;
31
+ },
32
+ });
33
+ }
34
+
35
+ return mapPaths(oldPath, {
36
+ find: {
37
+ directory: 'addon/components',
38
+ file: 'component.js',
39
+ },
40
+ replace(key) {
41
+ return `addon/components/${key}.js`;
42
+ },
43
+ });
44
+ });
45
+ }
@@ -0,0 +1,21 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForComponentStylesheets(projectRoot) {
6
+ const oldPaths = glob.sync('addon/components/**/styles.css', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ return mapPaths(oldPath, {
12
+ find: {
13
+ directory: 'addon/components',
14
+ file: 'styles.css',
15
+ },
16
+ replace(key) {
17
+ return `addon/components/${key}.css`;
18
+ },
19
+ });
20
+ });
21
+ }
@@ -0,0 +1,21 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForComponentTemplates(projectRoot) {
6
+ const oldPaths = glob.sync('addon/components/**/template.hbs', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ return mapPaths(oldPath, {
12
+ find: {
13
+ directory: 'addon/components',
14
+ file: 'template.hbs',
15
+ },
16
+ replace(key) {
17
+ return `addon/components/${key}.hbs`;
18
+ },
19
+ });
20
+ });
21
+ }
@@ -0,0 +1,19 @@
1
+ import { migrationStrategyForComponentClasses } from './component-classes.js';
2
+ import { migrationStrategyForComponentStylesheets } from './component-stylesheets.js';
3
+ import { migrationStrategyForComponentTemplates } from './component-templates.js';
4
+ import { migrationStrategyForRouteControllers } from './route-controllers.js';
5
+ import { migrationStrategyForRouteRoutes } from './route-routes.js';
6
+ import { migrationStrategyForRouteStylesheets } from './route-stylesheets.js';
7
+ import { migrationStrategyForRouteTemplates } from './route-templates.js';
8
+
9
+ export function migrationStrategyForAddonFolder(projectRoot) {
10
+ return new Map([
11
+ ...migrationStrategyForComponentClasses(projectRoot),
12
+ ...migrationStrategyForComponentStylesheets(projectRoot),
13
+ ...migrationStrategyForComponentTemplates(projectRoot),
14
+ ...migrationStrategyForRouteControllers(projectRoot),
15
+ ...migrationStrategyForRouteRoutes(projectRoot),
16
+ ...migrationStrategyForRouteStylesheets(projectRoot),
17
+ ...migrationStrategyForRouteTemplates(projectRoot),
18
+ ]);
19
+ }
@@ -0,0 +1,33 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteControllers(projectRoot) {
6
+ const oldPaths = glob.sync('addon/**/controller.{js,ts}', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ if (oldPath.endsWith('.ts')) {
12
+ return mapPaths(oldPath, {
13
+ find: {
14
+ directory: 'addon',
15
+ file: 'controller.ts',
16
+ },
17
+ replace(key) {
18
+ return `addon/controllers/${key}.ts`;
19
+ },
20
+ });
21
+ }
22
+
23
+ return mapPaths(oldPath, {
24
+ find: {
25
+ directory: 'addon',
26
+ file: 'controller.js',
27
+ },
28
+ replace(key) {
29
+ return `addon/controllers/${key}.js`;
30
+ },
31
+ });
32
+ });
33
+ }
@@ -0,0 +1,33 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteRoutes(projectRoot) {
6
+ const oldPaths = glob.sync('addon/**/route.{js,ts}', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ if (oldPath.endsWith('.ts')) {
12
+ return mapPaths(oldPath, {
13
+ find: {
14
+ directory: 'addon',
15
+ file: 'route.ts',
16
+ },
17
+ replace(key) {
18
+ return `addon/routes/${key}.ts`;
19
+ },
20
+ });
21
+ }
22
+
23
+ return mapPaths(oldPath, {
24
+ find: {
25
+ directory: 'addon',
26
+ file: 'route.js',
27
+ },
28
+ replace(key) {
29
+ return `addon/routes/${key}.js`;
30
+ },
31
+ });
32
+ });
33
+ }
@@ -0,0 +1,21 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteStylesheets(projectRoot) {
6
+ const oldPaths = glob.sync('addon/!(components)/**/styles.css', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ return mapPaths(oldPath, {
12
+ find: {
13
+ directory: 'addon',
14
+ file: 'styles.css',
15
+ },
16
+ replace(key) {
17
+ return `addon/styles/${key}.css`;
18
+ },
19
+ });
20
+ });
21
+ }
@@ -0,0 +1,21 @@
1
+ import glob from 'glob';
2
+
3
+ import { mapPaths } from '../../../utils/map-paths.js';
4
+
5
+ export function migrationStrategyForRouteTemplates(projectRoot) {
6
+ const oldPaths = glob.sync('addon/!(components)/**/template.hbs', {
7
+ cwd: projectRoot,
8
+ });
9
+
10
+ return oldPaths.map((oldPath) => {
11
+ return mapPaths(oldPath, {
12
+ find: {
13
+ directory: 'addon',
14
+ file: 'template.hbs',
15
+ },
16
+ replace(key) {
17
+ return `addon/templates/${key}.hbs`;
18
+ },
19
+ });
20
+ });
21
+ }
@@ -0,0 +1,29 @@
1
+ import { moveFiles } from '../../utils/move-files.js';
2
+ import { migrationStrategyForAddonFolder } from './addon/index.js';
3
+ import { migrationStrategyForTestsFolder } from './tests/index.js';
4
+
5
+ export function migrateEmberEngine(options) {
6
+ const { projectRoot, testRun } = options;
7
+
8
+ const migrationStrategyAddon = migrationStrategyForAddonFolder(projectRoot);
9
+ const migrationStrategyTests = migrationStrategyForTestsFolder(projectRoot);
10
+
11
+ if (testRun) {
12
+ console.log({
13
+ migrationStrategyAddon,
14
+ migrationStrategyTests,
15
+ });
16
+
17
+ return;
18
+ }
19
+
20
+ moveFiles({
21
+ migrationStrategy: migrationStrategyAddon,
22
+ projectRoot,
23
+ });
24
+
25
+ moveFiles({
26
+ migrationStrategy: migrationStrategyTests,
27
+ projectRoot,
28
+ });
29
+ }