diff --git a/__tests__/__snapshots__/expect_test.bs.js.snap b/__tests__/__snapshots__/expect_test.res.mjs.snap similarity index 100% rename from __tests__/__snapshots__/expect_test.bs.js.snap rename to __tests__/__snapshots__/expect_test.res.mjs.snap diff --git a/jest.config.js b/jest.config.js index 69ac229..34d5408 100644 --- a/jest.config.js +++ b/jest.config.js @@ -38,8 +38,8 @@ module.exports = { "json", "html", "text", - // "lcov", - // "clover" + // "lcov", + // "clover" ], // An object that configures minimum threshold enforcement for coverage results @@ -83,11 +83,11 @@ module.exports = { moduleFileExtensions: [ "js", "mjs", - // "jsx", - // "ts", - // "tsx", - // "json", - // "node" + // "jsx", + // "ts", + // "tsx", + // "json", + // "node" ], // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module @@ -163,7 +163,7 @@ module.exports = { testMatch: [ //"**/__tests__/**/*.[jt]s?(x)", "**/__tests__/**/*_test.mjs", - "**/__tests__/**/*_test.bs.js", + "**/__tests__/**/*_test.res.mjs", //"**/?(*.)+(spec|test).[tj]s?(x)" ], @@ -190,15 +190,15 @@ module.exports = { // A map from regular expressions to paths to transformers transform: { "^.+\.m?js$": "babel-jest" - // "^.+\.js$": "babel-jest" + // "^.+\.js$": "babel-jest" }, // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation transformIgnorePatterns: [ "node_modules/(?!(rescript)/)" - // "/node_modules/", - // "\\.pnp\\.[^\\/]+$", - // "/src/" + // "/node_modules/", + // "\\.pnp\\.[^\\/]+$", + // "/src/" ], // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them diff --git a/bsconfig.json b/rescript.json similarity index 93% rename from bsconfig.json rename to rescript.json index 2938d1e..c35b59a 100644 --- a/bsconfig.json +++ b/rescript.json @@ -2,7 +2,7 @@ "name": "@glennsl/rescript-jest", "namespace": false, "bsc-flags": ["-bs-no-version-header", "-bs-super-errors"], - "suffix": ".bs.js", + "suffix": ".res.mjs", "package-specs": { "module": "commonjs", "in-source": true