mirror of
https://github.com/datashard/snapshot.git
synced 2024-11-25 15:22:27 +00:00
chore: update semantic release
This commit is contained in:
parent
f5503c4756
commit
46cb474a5d
3 changed files with 5682 additions and 1522 deletions
7128
package-lock.json
generated
7128
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -62,7 +62,7 @@
|
||||||
"unit": "mocha src/*-spec.js",
|
"unit": "mocha src/*-spec.js",
|
||||||
"unused-deps": "dependency-check --unused --no-dev . --entry src/add-initial-snapshot-file.js",
|
"unused-deps": "dependency-check --unused --no-dev . --entry src/add-initial-snapshot-file.js",
|
||||||
"postinstall": "node src/add-initial-snapshot-file.js",
|
"postinstall": "node src/add-initial-snapshot-file.js",
|
||||||
"semantic-release": "semantic-release pre && npm publish --access public && semantic-release post",
|
"semantic-release": "semantic-release",
|
||||||
"cypress:open": "cypress open",
|
"cypress:open": "cypress open",
|
||||||
"cypress:run": "cypress run"
|
"cypress:run": "cypress run"
|
||||||
},
|
},
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
"license-checker": "15.0.0",
|
"license-checker": "15.0.0",
|
||||||
"mocha": "4.1.0",
|
"mocha": "4.1.0",
|
||||||
"pre-git": "3.17.1",
|
"pre-git": "3.17.1",
|
||||||
"semantic-release": "8.2.3"
|
"semantic-release": "^15.13.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wildpeaks/snapshot-dom": "1.2.1",
|
"@wildpeaks/snapshot-dom": "1.2.1",
|
||||||
|
|
|
@ -36,10 +36,10 @@ function registerCypressSnapshot () {
|
||||||
la(is.fn(global.after), 'missing global after function')
|
la(is.fn(global.after), 'missing global after function')
|
||||||
la(is.object(global.Cypress), 'missing Cypress object')
|
la(is.object(global.Cypress), 'missing Cypress object')
|
||||||
|
|
||||||
const useRelative = Cypress.config("useRelativeSnapshots")
|
const useRelative = Cypress.config('useRelativeSnapshots')
|
||||||
const config = {
|
const config = {
|
||||||
useRelativeSnapshots: useRelative === undefined ? DEFAULT_CONFIG_OPTIONS.useRelativeSnapshots : useRelative,
|
useRelativeSnapshots: useRelative === undefined ? DEFAULT_CONFIG_OPTIONS.useRelativeSnapshots : useRelative,
|
||||||
snapshotFileName: Cypress.config("snapshotFileName") || DEFAULT_CONFIG_OPTIONS.snapshotFileName
|
snapshotFileName: Cypress.config('snapshotFileName') || DEFAULT_CONFIG_OPTIONS.snapshotFileName
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('registering @cypress/snapshot')
|
console.log('registering @cypress/snapshot')
|
||||||
|
|
Loading…
Reference in a new issue