Skip to content

Commit

Permalink
revert jest setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Dec 6, 2024
1 parent 751a5a9 commit 728d2a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const defaultEsmPreset = createDefaultEsmPreset();
const config: Config = {
testEnvironment: 'node',
testMatch: ['<rootDir>/test/**/*-test.ts'],
setupFiles: ['<rootDir>/test/jest.setup.ts'],
setupFiles: ['<rootDir>/test/jest.setup.cjs'],
...defaultEsmPreset,
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
Expand Down
8 changes: 4 additions & 4 deletions test/jest.setup.ts → test/jest.setup.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os from 'node:os';
import sinon from 'sinon';
const os = require('node:os');
const sinon = require('sinon');

export default function () {
module.exports = function () {
sinon.stub(os, 'EOL').value('\n'); // Stub os.EOL to always be '\n' for testing/snapshot purposes.
}
};

0 comments on commit 728d2a6

Please sign in to comment.