Skip to content

Commit 212a004

Browse files
committed
01 and 02 example migration wip
1 parent 4f3f070 commit 212a004

13 files changed

Lines changed: 82 additions & 67 deletions

.github/workflows/nodejs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ jobs:
1616
uses: actions/setup-node@v1
1717
with:
1818
node-version: ${{ matrix.node-version }}
19-
- name: npm install, lint, and test
19+
- name: npm install, and test
2020
run: |
21-
npm ci --omit=dev
22-
npm run test
21+
# no dependencied required, yet
22+
# npm ci --omit=dev
23+
npm run test:all
2324
env:
2425
CI: true

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"test": "node --test --test-only ./src/migrated/*",
7-
"test:all": "npm t && npm run test:seq && npm run test:par",
8-
"test:seq": "node --test --test-only --test-concurrency=1 ./src/migrated/*",
9-
"test:par": "node --test --test-only --test-concurrency=5 ./src/migrated/*",
6+
"test": "node --test ./src/migrated/*.test.js",
7+
"dev": "node --test --watch ./src/migrated/*.test.js",
8+
"test:all": "npm t && npm run test:only && npm run test:seq && npm run test:par",
9+
"test:seq": "node --test --test-only --test-concurrency=1 ./src/migrated/*.test.js",
10+
"test:par": "node --test --test-only --test-concurrency=5 ./src/migrated/*.test.js",
11+
"test:only": "node --test --test-only src/migrated/*.only.js",
1012
"test:failing": "node --test src/migrated/*.failing.js && echo 'Error: test run should fail' && exit 1 || echo 'Success: test run failed as expected' && exit 0",
1113
"format": "prettier -w ."
1214
},

src/02.02-not-to-be-have-been-called.test.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/02.02-single-add.test.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/02.02-spy-mock-implementation.test.js

Lines changed: 0 additions & 16 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

src/migrated/01.03-many-skip-tests.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ describe("my suite", () => {
1515
assert.equal(1 + 1, 1);
1616
});
1717
test("t.skip only true test", (t) => {
18-
t.skip('skipping inside the test')
18+
t.skip('skipping inside the test');
19+
return;
1920
assert.equal(1 + 1, 1);
2021
});
2122
});
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)