diff --git a/CHANGELOG.md b/CHANGELOG.md index e49c1c9cbd..9fda5031a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,9 @@ Internal: - Fix CI timeouts: run Jest single thread in TravisCI ([PR #712](https://github.com/alphagov/govuk-frontend/pull/712)) +- Ensure 'after' tests are not ignored + ([PR #720](https://github.com/alphagov/govuk-frontend/pull/720)) + ## 0.0.29-alpha (Breaking release) Breaking changes: diff --git a/package.json b/package.json index 27de3557ab..2d4c360e2c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "release": "node bin/check-nvmrc.js && ./bin/release.sh", "build:package": "node bin/check-nvmrc.js && gulp build:package --destination 'package' && npm run test:build:package", "build:dist": "node bin/check-nvmrc.js && gulp build:dist --destination 'dist' && npm run test:build:dist", - "test": "standard && gulp test && gulp copy-assets && jest", + "test": "standard && gulp test && gulp copy-assets && jest --testPathIgnorePatterns='after-*'", "test:build:package": "jest tasks/gulp/__tests__/after-build-package.test.js", "test:build:dist": "jest tasks/gulp/__tests__/after-build-dist.test.js" }, @@ -85,10 +85,6 @@ ] }, "jest": { - "testPathIgnorePatterns": [ - "/node_modules/", - "after-*" - ], "setupTestFrameworkScriptFile": "./config/jest-setup.js", "snapshotSerializers": [ "jest-serializer-html"