javascript-tests
Here are 81 public repositories matching this topic...
-
Updated
Mar 11, 2020 - JavaScript
Just noticed it is out of date and should match or even just link to https://github.com/JamieMason/Jasmine-Matchers/tree/master/examples/jest
There is a PR regarding this #37 in Japanese, but I think it's important to have it in English, too. We should have a guide about testing forms:
- how to use
setValue,setCheckedetc for radio buttons/checkboxes - how to test select/option
- how to test forms in general (
find(Form).trigger('submit.prevent)etc - if the form is async (as most are) we need to use
flushPromisesand `awa
-
Updated
Jun 11, 2020 - TypeScript
-
Updated
Mar 31, 2019 - JavaScript
-
Updated
Jun 9, 2020 - TypeScript
-
Updated
Feb 22, 2017
-
Updated
May 1, 2018 - JavaScript
-
Updated
Sep 19, 2019 - JavaScript
-
Updated
Sep 3, 2019 - JavaScript
-
Updated
Mar 9, 2020 - JavaScript
When attempting to override a global specified in the jest.config.js we've found it isn't overriden.
We have a set of globals which are basically stubs (in jest.config.js) e.g.
module.exports = {
globals: {
YJ: {
i18n: {
react: {}
}
}
},
...
Then when using jest-wrap to override the i18n key in that glob
Setup docs
Compared to the current docs, when one creates a React app with the now standard npm create-react-app, the way to integrate this library will rather be in src/setupTests.js :
// src/setupTests.js
import EventSource from "eventsourcemock";
Object.defineProperty(window, 'EventSource', {
value: EventSource,
});
-
Updated
May 12, 2020 - TypeScript
-
Updated
Aug 27, 2019 - JavaScript
-
Updated
May 4, 2020 - TypeScript
-
Updated
Jul 30, 2018 - JavaScript
-
Updated
Feb 11, 2018 - JavaScript
-
Updated
Jun 9, 2020
-
Updated
May 8, 2020 - Java
-
Updated
Mar 8, 2018 - JavaScript
-
Updated
May 5, 2020 - JavaScript
-
Updated
May 2, 2020 - JavaScript
-
Updated
May 17, 2019 - JavaScript
-
Updated
Jul 28, 2019 - JavaScript
-
Updated
Feb 20, 2017
-
Updated
Apr 10, 2020 - JavaScript
-
Updated
Jan 16, 2020 - JavaScript
Improve this page
Add a description, image, and links to the javascript-tests topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the javascript-tests topic, visit your repo's landing page and select "manage topics."


Current behavior:
We use
--envvariable to pass some environment variables to cypress, when it's running both in headless and headed mode.One of the parameters is a hash (mix of numbers and characters). Surprisingly some specific hash values make cypress to fail reading this value from the command line (e.g.
769e98018). The corresponding environment variable is not set and the `Cyp