diff --git a/jest.config.cjs b/jest.config.cjs index 4f4865e..30ca95d 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -8,4 +8,6 @@ module.exports = { rootDir: 'src', coverageDirectory: 'coverage', moduleDirectories: ['node_modules'], + moduleFileExtensions: ['js', 'ts', 'tsx', 'json', 'node'], + modulePaths: [''], } diff --git a/package.json b/package.json index f798fdc..48d3e0b 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json", "build:esm": "tsc -p tsconfig.json && echo '{\"type\": \"module\"}' > dist/esm/package.json", "clean": "exec git clean -xf -e 'node_modules' '*'", - "test": "jest test" + "test": "jest test --no-cache" }, "dependencies": { "@kiltprotocol/sdk-js": "^0.33.1",