Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure 'after' tests are not ignored #720

Merged
merged 2 commits into from
May 29, 2018
Merged

Ensure 'after' tests are not ignored #720

merged 2 commits into from
May 29, 2018

Conversation

NickColley
Copy link
Contributor

@NickColley NickColley commented May 24, 2018

Unblocks releases, after tests are only used to test the result of other tasks, for example
building the dist/ folder.

@NickColley NickColley requested a review from alex-ju May 24, 2018 15:15
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-720 May 24, 2018 15:15 Inactive
@kr8n3r
Copy link

kr8n3r commented May 25, 2018

changelog 🔏

Copy link
Contributor

@alex-ju alex-ju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We either do it this way, or we can move the "after-*" to be ignored only for the main "test" task.

"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"

...

"testPathIgnorePatterns": [
  "/node_modules/"
],

I'm fine with either option.

After tests are only used to test the result of other tasks, for example
building the `dist/` folder.
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-720 May 29, 2018 09:44 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants