We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b9f45b commit ae8958bCopy full SHA for ae8958b
3 files changed
e2e/custom-jsdom-html/__tests__/test.js
@@ -0,0 +1,3 @@
1
+test('jsdom custom html', async () => {
2
+ expect(document.getElementById('root')).toBeTruthy();
3
+});
e2e/custom-jsdom-html/babel.config.js
@@ -0,0 +1,5 @@
+module.exports = {
+ preset: [['@babel/env', {
+ targets: 'current'
4
+ }]]
5
+}
e2e/custom-jsdom-html/package.json
@@ -0,0 +1,13 @@
+{
+ "dependencies": {
+ "@babel/core": "^7.2.2",
+ "@babel/preset-env": "^7.2.2"
+ },
6
+ "jest": {
7
+ "testEnvironment": "jsdom",
8
+ "testEnvironmentOptions": {
9
+ "html": "<div id=\"root\"></div>"
10
+ }
11
12
13
+
0 commit comments