Skip to content

Commit

Permalink
drop unused deps, add simple integration test, change typescript target
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhaller3000 authored and calebdwilliams committed Apr 10, 2024
1 parent f64bca6 commit 87b2d27
Show file tree
Hide file tree
Showing 5 changed files with 5,402 additions and 8,586 deletions.
15 changes: 0 additions & 15 deletions .babelrc

This file was deleted.

4 changes: 3 additions & 1 deletion jsdom-tests/jsdom.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ const polyfillContents = readFileSync('./dist/index.js', 'utf-8');

function test(title, condition) {
if (!condition) {
throw new Error(`${title} failed with error ${error}`);
throw new Error(`${title} failed with error`);
} else {
console.log(`${title} passed in JSDOM`);
}
}

test("no optional chaining operator in output",!polyfillContents.includes("?."));

JSDOM.fromFile('./jsdom-tests/index.html', {
runScripts: 'dangerously'
}).then(async ({ window }) => {
Expand Down
Loading

0 comments on commit 87b2d27

Please sign in to comment.