Skip to content

Commit 6155852

Browse files
committed
Uint8Array issue
1 parent 7c0461b commit 6155852

4 files changed

Lines changed: 179 additions & 53 deletions

File tree

jest.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
verbose: true,
3-
testEnvironment: 'jsdom',
3+
// https://github.com/paralleldrive/cuid2/issues/44#issuecomment-1531731695
4+
testEnvironment: './jest-environment-jsdom.js', // had to extend; see https://github.com/jsdom/jsdom/issues/2524
45
testMatch: [
56
'**/?(*.)+(spec|test).[tj]s?(x)' ],
67
setupFilesAfterEnv: [
@@ -9,5 +10,6 @@ module.exports = {
910
transformIgnorePatterns: ["/node_modules/(?!lit-html).+\\.js"],
1011
testEnvironmentOptions: {
1112
customExportConditions: ['node']
12-
}
13+
}
14+
1315
}

0 commit comments

Comments
 (0)