diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-06-25 08:31:51 +0000 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-06-25 08:31:51 +0000 |
commit | ab3a310b47347425ecf062384f17214c96e87e7a (patch) | |
tree | d141c4ddd7ad1879894a2b79c7d5401fb64796ca | |
parent | 35d19c41dea3c69e0993fd173082417eae087903 (diff) | |
download | gitlab-ce-winh-jest-webpack-docs.tar.gz |
Fix typo aliasses --> aliaseswinh-jest-webpack-docs
-rw-r--r-- | doc/development/testing_guide/frontend_testing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/testing_guide/frontend_testing.md b/doc/development/testing_guide/frontend_testing.md index 8837831cc22..3949f61d4d4 100644 --- a/doc/development/testing_guide/frontend_testing.md +++ b/doc/development/testing_guide/frontend_testing.md @@ -29,7 +29,7 @@ we need to solve before being able to use Jest for all our needs. - Jest runs in a Node.js environment, not in a browser. Support for running Jest tests in a browser [is planned](https://gitlab.com/gitlab-org/gitlab-ce/issues/58205). - Because Jest runs in a Node.js environment, it uses [jsdom](https://github.com/jsdom/jsdom) by default. - Jest does not have access to Webpack loaders or aliases. - The aliasses used by Jest are defined in its [own config](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/jest.config.js). + The aliases used by Jest are defined in its [own config](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/jest.config.js). - All calls to `setTimeout` and `setInterval` are mocked away. See also [Jest Timer Mocks](https://jestjs.io/docs/en/timer-mocks). - `rewire` is not required because Jest supports mocking modules. See also [Manual Mocks](https://jestjs.io/docs/en/manual-mocks). - The following will cause tests to fail in Jest: |