Skip to content

Commit 7b01de3

Browse files
committed
(refactor/test): switch test env to jest w/ electron runner
- use a full browser for testing instead of running in Node and relying on JSDOM, which does not implement all of the features we use (namely worker-related stuff) - this ensures tests run without any errors - and @jest-runner/electron is surprisingly **very fast**, not much different from running in normal jest w/ jsdom - like 4s locally fast I mean - refactor tests to Jest style from AVA style - remove all AVA-specifc config
1 parent 713f6a9 commit 7b01de3

File tree

6 files changed

+7557
-4258
lines changed

6 files changed

+7557
-4258
lines changed

jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
runner: '@jest-runner/electron',
3+
testEnvironment: '@jest-runner/electron/environment',
4+
// don't need to run babel on anything
5+
// (and browserify bundle takes very long and sometimes errors out if we do)
6+
transform: {}
7+
}

0 commit comments

Comments
 (0)