-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-test-fixtures.sh
executable file
·65 lines (51 loc) · 2.08 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
#!/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/classic-components/output"
cp -r "tests/fixtures/classic-components/input" "tests/fixtures/classic-components/output"
./dist/bin/ember-codemod-args-to-signature.js \
--root "tests/fixtures/classic-components/output" \
--src "app/components"
# Update fixtures
rm -r "tests/fixtures/ember-container-query/output"
cp -r "tests/fixtures/ember-container-query/input" "tests/fixtures/ember-container-query/output"
./dist/bin/ember-codemod-args-to-signature.js \
--root "tests/fixtures/ember-container-query/output" \
--src "app/components"
# Update fixtures
rm -r "tests/fixtures/ember-container-query-addon/output"
cp -r "tests/fixtures/ember-container-query-addon/input" "tests/fixtures/ember-container-query-addon/output"
./dist/bin/ember-codemod-args-to-signature.js \
--root "tests/fixtures/ember-container-query-addon/output" \
--src "addon/components"
# 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-args-to-signature.js \
--root "tests/fixtures/ember-container-query-glint/output" \
--src "src/components"
# Update fixtures
rm -r "tests/fixtures/ember-container-query-nested/output"
cp -r "tests/fixtures/ember-container-query-nested/input" "tests/fixtures/ember-container-query-nested/output"
./dist/bin/ember-codemod-args-to-signature.js \
--component-structure nested \
--root "tests/fixtures/ember-container-query-nested/output" \
--src "app/components"
# Update fixtures
rm -r "tests/fixtures/ember-container-query-no-args/output"
cp -r "tests/fixtures/ember-container-query-no-args/input" "tests/fixtures/ember-container-query-no-args/output"
./dist/bin/ember-codemod-args-to-signature.js \
--root "tests/fixtures/ember-container-query-no-args/output" \
--src "app/components"