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:
Hannah Wolfe 2022-02-04 08:41:03 +00:00
parent f55f2b1587
commit ff03d26bbb
No known key found for this signature in database
GPG Key ID: AB586C3B5AE5C037

View File

@ -26,7 +26,7 @@
"setup": "yarn install && knex-migrator init && grunt symlink && grunt init || (exit 0)", "setup": "yarn install && knex-migrator init && grunt symlink && grunt init || (exit 0)",
"main": "grunt shell:main && grunt subgrunt:init", "main": "grunt shell:main && grunt subgrunt:init",
"build": "grunt build", "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:all": "yarn test:unit && yarn test:integration && yarn test:e2e && yarn lint",
"test:debug": "DEBUG=ghost:test* yarn test", "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", "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",