From 5832c491af2cd72b9ea7a10521871287292cc5c3 Mon Sep 17 00:00:00 2001 From: Josa Gesell Date: Sun, 27 Mar 2022 15:28:33 +0200 Subject: [PATCH] chore: move mocks into src directory --- .npmignore | 1 - jest.config.js | 3 ++- {__mocks__ => src/__mocks__}/coc.nvim.js | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {__mocks__ => src/__mocks__}/coc.nvim.js (100%) diff --git a/.npmignore b/.npmignore index b3cfd18..a9fbd98 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,3 @@ -/__mocks__/** /src /tsconfig.json /tslint.json diff --git a/jest.config.js b/jest.config.js index 786c663..e3f2d6b 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,5 +3,6 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', verbose: true, - testRegex: 'src/.*\\.test\\.ts$' + testRegex: 'src/.*\\.test\\.ts$', + modulePathIgnorePatterns: ['/lib'], } diff --git a/__mocks__/coc.nvim.js b/src/__mocks__/coc.nvim.js similarity index 100% rename from __mocks__/coc.nvim.js rename to src/__mocks__/coc.nvim.js