mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
Added snapshot utils to mocha requires for yarn test
- without this, you can't run any of the new tests with just yarn test path/to/file.test.js
This commit is contained in:
parent
f55f2b1587
commit
ff03d26bbb
@ -26,7 +26,7 @@
|
||||
"setup": "yarn install && knex-migrator init && grunt symlink && grunt init || (exit 0)",
|
||||
"main": "grunt shell:main && grunt subgrunt:init",
|
||||
"build": "grunt build",
|
||||
"test": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js --timeout=60000",
|
||||
"test": "mocha --require=./test/utils/overrides.js --require=./test/utils/snapshots.js --exit --trace-warnings --recursive --extension=test.js --timeout=60000",
|
||||
"test:all": "yarn test:unit && yarn test:integration && yarn test:e2e && yarn lint",
|
||||
"test:debug": "DEBUG=ghost:test* yarn test",
|
||||
"test:unit": "c8 --reporter text-summary --reporter cobertura mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/unit' --timeout=2000",
|
||||
|
Loading…
Reference in New Issue
Block a user