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

feat: jsdom-v13 #229

Merged
merged 1 commit into from
Feb 16, 2019
Merged

feat: jsdom-v13 #229

merged 1 commit into from
Feb 16, 2019

Conversation

wtho
Copy link
Collaborator

@wtho wtho commented Feb 16, 2019

This PR introduces jsdom v13 as default test environment for jest-preset-angular. This is achieved by

  • Adding jest-environment-jsdom-thirteen as dependency
  • Adding testEnvironment: 'jest-environment-jsdom-thirteen' to jest-preset.js`
  • Removing Web Storage API mocks from example/jestGlobalmocks.ts
  • Adding instructions in README Troubleshooting to configure usage of jsdom v11 (one line in jest configuration)

I added tests in a second commit to confirm it works, but I think they do not have to end up in the repository, as they basically test, what is already tested in jsdom itself.

Closes #216

README.md Outdated Show resolved Hide resolved
Copy link
Owner

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

Looks good!

@ahnpnl
Copy link
Collaborator

ahnpnl commented Feb 16, 2019

LGTM 👍

This enables us to use `localStorage` and `sessionStorage` without
mocking it manually.

Instructions to handle node < v6 were added to README.md.
@wtho
Copy link
Collaborator Author

wtho commented Feb 16, 2019

In latest commit:

  • Added change to changelog
  • rephrased README and fixed wrong version
  • removed web storage api tests, features are tested by jsdom anyway

@thymikee thymikee merged commit 864440e into thymikee:master Feb 16, 2019
@thymikee
Copy link
Owner

Thanks @wtho! Releasing new v7 beta in a minute

thymikee pushed a commit that referenced this pull request Feb 16, 2019
This PR introduces jsdom v13 as default test environment for jest-preset-angular. This is achieved by
* Adding [jest-environment-jsdom-thirteen](https://github.com/theneva/jest-environment-jsdom-thirteen) as dependency
* Adding `testEnvironment: 'jest-environment-jsdom-thirteen' to `jest-preset.js`
* Removing Web Storage API mocks from `example/jestGlobalmocks.ts`
* Adding instructions in README Troubleshooting to configure usage of jsdom v11 (one line in jest configuration)

I added tests in a second commit to confirm it works, but I think they do not have to end up in the repository, as they basically test, what is already tested in jsdom itself.


Closes #216
@thymikee
Copy link
Owner

Available on next tag :)

@wtho wtho deleted the feat/jsdom-v13 branch February 16, 2019 15:56
thymikee added a commit that referenced this pull request Mar 4, 2019
* origin/release/7:
  feat: jsdom-v13 (#229)
  fix: moved @types/jest to devDependencies (#227)
@ahnpnl ahnpnl added this to the 7.0.0 milestone Mar 5, 2019
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.

None yet

3 participants