@toptal/davinci-qa 12.0.1 → 12.0.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
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 12.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1543](https://github.com/toptal/davinci/pull/1543) [`9b67beb3`](https://github.com/toptal/davinci/commit/9b67beb3aaf0e24193b2deaba3126c41e3ec9280) Thanks [@denieler](https://github.com/denieler)! - ---
|
|
8
|
+
- `integration-open` command now throws a human readable message when necessary `davinci-engine` dependency is not installed or installed a wrong version
|
|
9
|
+
- `integration-run` command now throws a human readable message when necessary `davinci-engine` dependency is not installed or installed a wrong version
|
|
10
|
+
- Updated dependencies [[`9b67beb3`](https://github.com/toptal/davinci/commit/9b67beb3aaf0e24193b2deaba3126c41e3ec9280), [`04fe7ffa`](https://github.com/toptal/davinci/commit/04fe7ffa161027d081c6ae870716bb06a2fcf73f)]:
|
|
11
|
+
- @toptal/davinci-cli-shared@1.7.0
|
|
12
|
+
|
|
13
|
+
## 12.0.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#1541](https://github.com/toptal/davinci/pull/1541) [`397a53c9`](https://github.com/toptal/davinci/commit/397a53c9add9f7e8d485648b51cd22676d97c78f) Thanks [@TomasSlama](https://github.com/TomasSlama)! - ---
|
|
18
|
+
- Update documentation about prefering individual davinci packages usage
|
|
19
|
+
- Updated dependencies [[`397a53c9`](https://github.com/toptal/davinci/commit/397a53c9add9f7e8d485648b51cd22676d97c78f)]:
|
|
20
|
+
- @toptal/davinci-engine@7.4.6
|
|
21
|
+
|
|
3
22
|
## 12.0.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Run tests in your projects with almost 0 configuration.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
Use it by installing `yarn add @toptal/davinci` in your project.
|
|
7
|
+
Use it by installing `yarn add @toptal/davinci-qa` in your project.
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -17,8 +17,8 @@ Use it by installing `yarn add @toptal/davinci` in your project.
|
|
|
17
17
|
### Alias
|
|
18
18
|
|
|
19
19
|
You can use davinci qa both as a standalone command `davinci-qa [...args]`
|
|
20
|
-
or as a sub-command of the davinci command: `davinci qa [args...]
|
|
21
|
-
Recommended way is to use davinci
|
|
20
|
+
or as a sub-command of the davinci command: `davinci qa [args...]`, in this case @toptal/davinci package is required.
|
|
21
|
+
Recommended way is to use individual davinci packages, i.e. `davinci-qa unit`.
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
### IDE Tooling
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-qa",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.3",
|
|
4
4
|
"description": "QA package to test your application",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@cypress/webpack-preprocessor": "^5.12.0",
|
|
38
38
|
"@testing-library/jest-dom": "^5.16.4",
|
|
39
39
|
"@testing-library/react": "^12.1.2",
|
|
40
|
-
"@toptal/davinci-cli-shared": "1.
|
|
40
|
+
"@toptal/davinci-cli-shared": "1.7.0",
|
|
41
41
|
"@types/jest": "^27.5.1",
|
|
42
42
|
"babel-jest": "^28.1.3",
|
|
43
43
|
"cypress": "^10.0.3",
|
|
@@ -63,6 +63,6 @@
|
|
|
63
63
|
"mocha": "^10.0.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@toptal/davinci-engine": "7
|
|
66
|
+
"@toptal/davinci-engine": "3 - 7"
|
|
67
67
|
}
|
|
68
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-qa",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.3",
|
|
4
4
|
"description": "QA package to test your application",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@cypress/webpack-preprocessor": "^5.12.0",
|
|
38
38
|
"@testing-library/jest-dom": "^5.16.4",
|
|
39
39
|
"@testing-library/react": "^12.1.2",
|
|
40
|
-
"@toptal/davinci-cli-shared": "1.
|
|
40
|
+
"@toptal/davinci-cli-shared": "1.7.0",
|
|
41
41
|
"@types/jest": "^27.5.1",
|
|
42
42
|
"babel-jest": "^28.1.3",
|
|
43
43
|
"cypress": "^10.0.3",
|
|
@@ -63,6 +63,6 @@
|
|
|
63
63
|
"mocha": "^10.0.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@toptal/davinci-engine": "7
|
|
66
|
+
"@toptal/davinci-engine": "3 - 7"
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -2,6 +2,7 @@ const {
|
|
|
2
2
|
runSync,
|
|
3
3
|
print,
|
|
4
4
|
convertToCLIParameters,
|
|
5
|
+
packageUtils,
|
|
5
6
|
} = require('@toptal/davinci-cli-shared')
|
|
6
7
|
|
|
7
8
|
const getCypressConfigPath = require('../utils/get-cypress-config-path')
|
|
@@ -10,6 +11,17 @@ const integrationOpenCommand = ({
|
|
|
10
11
|
options: { baseUrl, ...cypressOptions } = {},
|
|
11
12
|
files: testFiles = [],
|
|
12
13
|
}) => {
|
|
14
|
+
const prerequirementsError = packageUtils.checkPrerequirement({
|
|
15
|
+
dependencies:
|
|
16
|
+
packageUtils.getPackagePackageJson(__dirname).peerDependencies,
|
|
17
|
+
packageName: '@toptal/davinci-engine',
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
if (prerequirementsError) {
|
|
21
|
+
print.red(prerequirementsError)
|
|
22
|
+
process.exit(1)
|
|
23
|
+
}
|
|
24
|
+
|
|
13
25
|
print.green('Running integration tests...')
|
|
14
26
|
|
|
15
27
|
const configPath = getCypressConfigPath()
|
|
@@ -3,6 +3,7 @@ const {
|
|
|
3
3
|
print,
|
|
4
4
|
convertToCLIParameters,
|
|
5
5
|
files,
|
|
6
|
+
packageUtils,
|
|
6
7
|
} = require('@toptal/davinci-cli-shared')
|
|
7
8
|
|
|
8
9
|
const getCypressConfigPath = require('../utils/get-cypress-config-path')
|
|
@@ -11,6 +12,17 @@ const integrationRunCommand = ({
|
|
|
11
12
|
options: { baseUrl, anvilTag, ...cypressOptions } = {},
|
|
12
13
|
files: testFiles = [],
|
|
13
14
|
}) => {
|
|
15
|
+
const prerequirementsError = packageUtils.checkPrerequirement({
|
|
16
|
+
dependencies:
|
|
17
|
+
packageUtils.getPackagePackageJson(__dirname).peerDependencies,
|
|
18
|
+
packageName: '@toptal/davinci-engine',
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
if (prerequirementsError) {
|
|
22
|
+
print.red(prerequirementsError)
|
|
23
|
+
process.exit(1)
|
|
24
|
+
}
|
|
25
|
+
|
|
14
26
|
print.green('Running integration tests...')
|
|
15
27
|
|
|
16
28
|
const configPath = getCypressConfigPath()
|
|
@@ -18,6 +18,10 @@ jest.mock('@toptal/davinci-cli-shared', () => ({
|
|
|
18
18
|
getPackageFilePath: getPackageFilePathMock,
|
|
19
19
|
getProjectRootFilePath: getProjectRootFilePathMock,
|
|
20
20
|
},
|
|
21
|
+
packageUtils: {
|
|
22
|
+
checkPrerequirement: jest.fn(),
|
|
23
|
+
getPackagePackageJson: jest.fn(() => ({ peerDependencies: {} })),
|
|
24
|
+
},
|
|
21
25
|
}))
|
|
22
26
|
|
|
23
27
|
const { runSync } = require('@toptal/davinci-cli-shared')
|