diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d5849c2..a786129 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -53,11 +53,7 @@ jobs: cargo machete - name: Test - run: | - cargo test --verbose - cargo test --features serde - cargo test --features wasm - wasm-pack test --node --features wasm + run: scripts/test.sh publish-crate: needs: build diff --git a/reconcile-js/__mocks__/wasm.js b/reconcile-js/__mocks__/wasm.js index e67f920..1724448 100644 --- a/reconcile-js/__mocks__/wasm.js +++ b/reconcile-js/__mocks__/wasm.js @@ -2,7 +2,7 @@ const fs = require('fs'); const path = require('path'); // Read the actual WASM file and convert to base64 for testing -const wasmPath = path.join(__dirname, '../../pkg/reconcile_bg.wasm'); +const wasmPath = path.join(__dirname, '../../pkg/reconcile_text_bg.wasm'); const wasmBuffer = fs.readFileSync(wasmPath); const wasmBase64 = wasmBuffer.toString('base64'); diff --git a/reconcile-js/jest.config.js b/reconcile-js/jest.config.js index d411a6e..358968a 100644 --- a/reconcile-js/jest.config.js +++ b/reconcile-js/jest.config.js @@ -1,6 +1,6 @@ module.exports = { preset: 'ts-jest/presets/js-with-babel-esm', moduleNameMapper: { - '^reconcile-text/reconcile_bg\\.wasm$': `/__mocks__/wasm.js`, + '^reconcile-text/reconcile_text_bg\\.wasm$': `/__mocks__/wasm.js`, }, }; diff --git a/reconcile-js/package-lock.json b/reconcile-js/package-lock.json index a5a1797..0468a34 100644 --- a/reconcile-js/package-lock.json +++ b/reconcile-js/package-lock.json @@ -24,7 +24,7 @@ }, "../pkg": { "name": "reconcile-text", - "version": "0.4.3", + "version": "0.4.9", "dev": true, "license": "MIT" },