@toptal/davinci-qa 15.2.2 → 15.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/commands/unit-tests.js +5 -1
- package/src/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 15.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1985](https://github.com/toptal/davinci/pull/1985) [`c76c777c`](https://github.com/toptal/davinci/commit/c76c777c25fb1ff02543fa360819f239d28efcc4) Thanks [@sashuk](https://github.com/sashuk)!
|
|
8
|
+
- add `--updateSnapshot` / `-u` key to `davinci-qa unit` command
|
|
9
|
+
|
|
3
10
|
## 15.2.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ export const createUnitTestCommandAction =
|
|
|
58
58
|
})
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export const
|
|
61
|
+
export const createUnitTestCodeCommand = program => {
|
|
62
62
|
return program
|
|
63
63
|
.createCommand('unit')
|
|
64
64
|
.description('Run Jest tests')
|
|
@@ -107,6 +107,10 @@ export const createLintCodeCommand = program => {
|
|
|
107
107
|
'-b, --bail [n]',
|
|
108
108
|
'exit the test suite immediately upon n number of failing test suite'
|
|
109
109
|
)
|
|
110
|
+
.option(
|
|
111
|
+
'-u, --updateSnapshot',
|
|
112
|
+
'set this flag to re-record every snapshot that fails during this test run. Can be used together with a test suite pattern or with --testNamePattern to re-record snapshots.'
|
|
113
|
+
)
|
|
110
114
|
.option('--reporters <reporters...>', 'run tests with specified reporters')
|
|
111
115
|
.option('--collect-coverage')
|
|
112
116
|
.option(
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createUnitTestCodeCommand } from './commands/unit-tests.js'
|
|
2
2
|
import codeMetricsCommandCreator from './commands/code-metrics.js'
|
|
3
3
|
import happoConfig from './configs/happo.cjs'
|
|
4
4
|
import { createIntegrationRunCommand } from './commands/integration-run.js'
|
|
5
5
|
import { createIntegrationOpenCommand } from './commands/integration-open.js'
|
|
6
6
|
|
|
7
7
|
export const commands = [
|
|
8
|
-
|
|
8
|
+
createUnitTestCodeCommand,
|
|
9
9
|
program =>
|
|
10
10
|
program
|
|
11
11
|
.createCommand('integration')
|