Skip to content

Commit 2ee73da

Browse files
authored
test: rework tests to node-only (#350)
Long ago it seems we stopped testing in a browser, so this removes the associated switches in the test files and moves to a node-only suite. Meanwhile, this moves to using c8 for coverage and also reworks the tests to hit a local server rather than a real one (previously was hitting `chaijs.com` and another domain or two which changed underneath it over time).
1 parent 28ea01a commit 2ee73da

File tree

5 files changed

+625
-1678
lines changed

5 files changed

+625
-1678
lines changed

eslint.config.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ export default [
1111
expect: 'readonly',
1212
chai: 'readonly',
1313
global: 'writable',
14-
request: 'readonly'
14+
request: 'readonly',
15+
AbortController: 'readonly',
1516
}
1617
}
1718
},
1819
{
1920
...js.configs.recommended,
2021
files: ['**/*.js']
2122
},
22-
23+
{
24+
rules: {
25+
'mocha/no-mocha-arrows': 'off'
26+
}
27+
}
2328
];

0 commit comments

Comments
 (0)