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 f9662e5 commit f3a1b99Copy full SHA for f3a1b99
exercises/01-inline-styles/tests.js
@@ -1,13 +1,9 @@
1
const fs = require('fs');
2
const path = require('path');
3
-const { JSDOM } = require('jsdom');
4
-
5
-// Read the HTML file
6
const html = fs.readFileSync(path.resolve(__dirname, './index.html'), 'utf8');
+document.documentElement.innerHTML = html.toString();
7
8
-// Set up the DOM environment
9
-const { window } = new JSDOM(html);
10
-const { document } = window;
+jest.dontMock('fs');
11
12
// Run the tests
13
test("There should be a table element", () => {
0 commit comments