-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-test-fixtures.sh
executable file
·99 lines (75 loc) · 3.44 KB
/
update-test-fixtures.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/env sh
#----------
#
# A. Purpose
#
# Fix all test fixtures after updating the source code.
#
# B. Usage
#
# ./update-test-fixtures.sh
#
#---------
# Compile TypeScript
pnpm build
# Update fixtures
rm -r "tests/fixtures/ember-container-query-customizations/output"
cp -r "tests/fixtures/ember-container-query-customizations/input" "tests/fixtures/ember-container-query-customizations/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--addon-location packages/ember-container-query \
--root "tests/fixtures/ember-container-query-customizations/output" \
--test-app-location demo-app \
--test-app-name demo-app-for-ember-container-query
# Update fixtures
rm -r "tests/fixtures/ember-container-query-glint/output"
cp -r "tests/fixtures/ember-container-query-glint/input" "tests/fixtures/ember-container-query-glint/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--root "tests/fixtures/ember-container-query-glint/output"
# Update fixtures
rm -r "tests/fixtures/ember-container-query-javascript/output"
cp -r "tests/fixtures/ember-container-query-javascript/input" "tests/fixtures/ember-container-query-javascript/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--root "tests/fixtures/ember-container-query-javascript/output"
# Update fixtures
rm -r "tests/fixtures/ember-container-query-scoped/output"
cp -r "tests/fixtures/ember-container-query-scoped/input" "tests/fixtures/ember-container-query-scoped/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--root "tests/fixtures/ember-container-query-scoped/output"
# Update fixtures
rm -r "tests/fixtures/ember-container-query-typescript/output"
cp -r "tests/fixtures/ember-container-query-typescript/input" "tests/fixtures/ember-container-query-typescript/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--root "tests/fixtures/ember-container-query-typescript/output"
# Update fixtures
rm -r "tests/fixtures/hello-world/output"
cp -r "tests/fixtures/hello-world/input" "tests/fixtures/hello-world/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--root "tests/fixtures/hello-world/output"
# Update fixtures
rm -r "tests/fixtures/new-v1-addon-customizations/output"
cp -r "tests/fixtures/new-v1-addon-customizations/input" "tests/fixtures/new-v1-addon-customizations/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--addon-location packages/new-v1-addon \
--root "tests/fixtures/new-v1-addon-customizations/output" \
--test-app-location demo-app \
--test-app-name demo-app-for-new-v1-addon
# Update fixtures
rm -r "tests/fixtures/new-v1-addon-javascript/output"
cp -r "tests/fixtures/new-v1-addon-javascript/input" "tests/fixtures/new-v1-addon-javascript/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--root "tests/fixtures/new-v1-addon-javascript/output"
# Update fixtures
rm -r "tests/fixtures/new-v1-addon-npm/output"
cp -r "tests/fixtures/new-v1-addon-npm/input" "tests/fixtures/new-v1-addon-npm/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--root "tests/fixtures/new-v1-addon-npm/output"
# Update fixtures
rm -r "tests/fixtures/new-v1-addon-pnpm/output"
cp -r "tests/fixtures/new-v1-addon-pnpm/input" "tests/fixtures/new-v1-addon-pnpm/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--root "tests/fixtures/new-v1-addon-pnpm/output"
# Update fixtures
rm -r "tests/fixtures/new-v1-addon-typescript/output"
cp -r "tests/fixtures/new-v1-addon-typescript/input" "tests/fixtures/new-v1-addon-typescript/output"
./dist/bin/ember-codemod-v1-to-v2.js \
--root "tests/fixtures/new-v1-addon-typescript/output"