Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One way to make the tests run #11

Open
wants to merge 4 commits into
base: add-test
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update .mocharc.js
  • Loading branch information
Janpot committed Jan 4, 2024
commit 9e78c8901f2a9a9c0c653245521a81831ed86cc5
12 changes: 10 additions & 2 deletions .mocharc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ module.exports = {
recursive: true,
timeout: (process.env.CIRCLECI === 'true' ? 5 : 2) * 1000, // Circle CI has low-performance CPUs.
reporter: 'dot',
'node-option': ['loader=tsx/cjs'],
require: [require.resolve('./test/utils/setupJSDOM')],
require: [
// Not strictly necessary, but just to keep the babel plugins in the loop for the tests
require.resolve('./test/utils/setupBabel'),
// For compiling pure ESM modules that @babel/register can't handle.
// See https://babeljs.io/docs/babel-register#experimental-babel-8-implementation
// Note: @babel/register does not support compiling native Node.js ES modules on the fly,
// since currently there is no stable API for intercepting ES modules loading.
require.resolve('tsx/cjs'),
require.resolve('./test/utils/setupJSDOM'),
],
'watch-ignore': [
// default
'.git',
Expand Down
Loading