Skip to content

Commit cf39b59

Browse files
committed
Add command to debug tests
Run tests in debug mode (using Chrome's chrome://inspect tab) `yarn test:debug`
1 parent 3b8274a commit cf39b59

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Markdown report if any unknown globals are discovered.
8282
```sh
8383
yarn test // run all tests once
8484
yarn test -- --watchAll // continuously run tests
85+
yarn test:debug // run tests in debug mode (using Chrome's chrome://inspect tab)
8586
```
8687
8788
Tests for this codemod work by comparing a paired input and output file in the `__testfixtures__` directory. Pre-transform files should be of format `<test-name>.input.js`, expected output after the transform should be named `<test-name>.output.js`. Files must use the same `<test-name>` in their names so they can be compared.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"repository": "https://github.com/ember-cli/ember-modules-codemod",
77
"bin": "./bin/ember-modules-codemod.js",
88
"scripts": {
9-
"test": "jest"
9+
"test": "jest",
10+
"test:debug": "node --inspect node_modules/.bin/jest --runInBand"
1011
},
1112
"dependencies": {
1213
"chalk": "^1.1.3",

0 commit comments

Comments
 (0)