mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
913ad18b71
no issue With the increased usage of DomainEvents, it gets harder to build reliable tests without having to resort to timeouts. This utility method allows us to wait for all events to be processed before continuing with the test. This change should speed up tests and make them more reliable. It only adds extra code when running tests and shouldn't impact production.
26 lines
609 B
JSON
26 lines
609 B
JSON
{
|
|
"name": "@tryghost/domain-events",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"types": "types",
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage --100 mocha './test/**/*.test.js'",
|
|
"test": "yarn test:unit",
|
|
"lint": "eslint . --ext .js --cache"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib"
|
|
],
|
|
"devDependencies": {
|
|
"@tryghost/logging": "2.3.6",
|
|
"c8": "7.12.0",
|
|
"mocha": "10.2.0",
|
|
"should": "13.2.3"
|
|
}
|
|
}
|