diff --git a/package.json b/package.json index f666be4..8050ee0 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "prettify": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "format": "pnpm lint && pnpm prettify", "lint": "eslint ./src ./test --ext .ts --fix", - "test": "NODE_ENV=test mocha", + "test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' NODE_ENV=test mocha", "coverage": "nyc npm test", "coverage:codecov": "nyc --reporter=lcov npm test && codecov" }, diff --git a/test/src/index.spec.ts b/test/src/index.spec.ts index 4d62b7e..c8500e9 100644 --- a/test/src/index.spec.ts +++ b/test/src/index.spec.ts @@ -1,7 +1,7 @@ import * as _ from 'lodash' import should from 'should' -import * as o2diff from '../../src' +import * as o2diff from '../../src/index' import { getObjectID } from './test-utils' describe('o2diff / main', () => {