-
Notifications
You must be signed in to change notification settings - Fork 2
/
update-test-fixtures.sh
executable file
·49 lines (39 loc) · 1.25 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
#!/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/app/pod-path/output"
cp -r "tests/fixtures/app/pod-path/input" "tests/fixtures/app/pod-path/output"
./dist/bin/ember-codemod-pod-to-octane.js \
--pod-path pods \
--root "tests/fixtures/app/pod-path/output" \
--type app
# Update fixtures
rm -r "tests/fixtures/app/typescript/output"
cp -r "tests/fixtures/app/typescript/input" "tests/fixtures/app/typescript/output"
./dist/bin/ember-codemod-pod-to-octane.js \
--root "tests/fixtures/app/typescript/output" \
--type app
# Update fixtures
rm -r "tests/fixtures/engine/typescript/output"
cp -r "tests/fixtures/engine/typescript/input" "tests/fixtures/engine/typescript/output"
./dist/bin/ember-codemod-pod-to-octane.js \
--root "tests/fixtures/engine/typescript/output" \
--type v1-addon
# Update fixtures
rm -r "tests/fixtures/v1-addon/typescript/output"
cp -r "tests/fixtures/v1-addon/typescript/input" "tests/fixtures/v1-addon/typescript/output"
./dist/bin/ember-codemod-pod-to-octane.js \
--root "tests/fixtures/v1-addon/typescript/output" \
--type v1-addon