Skip to content

Commit

Permalink
Merge pull request #190 from kwonoj/fix-wallaby-test
Browse files Browse the repository at this point in the history
test(wallaby): update test configuration
  • Loading branch information
kwonoj authored Jun 13, 2019
2 parents 0ebe215 + e80b146 commit 56f42c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@
"pre-push": "npm-run-all build test"
}
}
}
}
5 changes: 2 additions & 3 deletions spec/hunspell-asm/loadModule-spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { getModuleLoader as getModuleLoaderMock, isNode } from 'emscripten-wasm-loader';
import * as hunspellMock from '../../src/lib/node/hunspell';
import { loadModule } from '../../src/loadModule';

jest.mock('../../src/lib/node/hunspell', () => jest.fn(), { virtual: true });
jest.mock('../../src/lib/node/hunspell', () => jest.fn());
jest.mock('emscripten-wasm-loader', () => ({
isWasmEnabled: jest.fn(),
isNode: jest.fn(),
Expand All @@ -12,8 +13,6 @@ jest.mock('emscripten-wasm-loader', () => ({
}
}));

const hunspellMock = require('../../src/lib/node/hunspell'); //tslint:disable-line:no-require-imports no-var-requires

const getModuleMock = () => ({
cwrap: jest.fn(),
FS: { mkdir: jest.fn() },
Expand Down
1 change: 1 addition & 0 deletions wallaby.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = (wallaby) => ({
files: [
"src/**/*.ts",
{ pattern: 'src/**/lib/**/*.js', instrument: false, load: true },
{ pattern: 'jest-hunspell-asm.json', instrument: false, load: true }
],

Expand Down

0 comments on commit 56f42c3

Please sign in to comment.