Skip to content

Commit

Permalink
feat: update jsdom v15.0.0 to improve compatibility of browser simula…
Browse files Browse the repository at this point in the history
…tion

Removed internal MutationObserver polyfill in favour of jsdom's offering.
Simpified and enhanced global vars creations for simulating browser environment, thank browser-env. It improves compatibility with other 3rd party libs in user's app, for example, global vars navigator/sessionStorage/localStorage are now available.
This also provides an alternative way to improve the compatibility of test setup in jest, comparing to aurelia/cli#1019.
  • Loading branch information
3cp committed Apr 30, 2019
1 parent 711664e commit dfc8b36
Show file tree
Hide file tree
Showing 21 changed files with 363 additions and 1,884 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ To build the code, follow these steps.
npm test
```
5. You will find the compiled code in the `dist` folder in CommonJS module format.

# Acknowledgement

This software used a snippet borrowed from [browser-env](https://github.com/lukechilds/browser-env).
19 changes: 8 additions & 11 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 3 additions & 32 deletions dist/nodejs-pal-builder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dfc8b36

Please sign in to comment.