mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-24 07:39:10 -04:00
Fix windows tests (#2227)
This commit is contained in:
1 parent
6b46faa05a
commit
fae26d65ac
2 files changed
+13
-2
No files matched your search
@@ -1,6 +1,14 @@
|
||||
name: Test
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- master
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
|
||||
env:
|
||||
NPM_CONFIG_TARGET: 3.1.13
|
||||
|
||||
@@ -2,9 +2,12 @@ import { assertAsyncError, setupDateMocks } from './util';
|
||||
import { MemPlugin } from '../mem-plugin';
|
||||
import path from 'path';
|
||||
import { GIT_CLONE_DIR } from '../git-vcs';
|
||||
import { isWindows } from '../../../common/constants';
|
||||
jest.mock('path');
|
||||
|
||||
describe.each(['win32', 'posix'])('Memlugin using path.%s', type => {
|
||||
const paths = isWindows() ? ['win32'] : ['win32', 'posix'];
|
||||
|
||||
describe.each([paths])('Memlugin using path.%s', type => {
|
||||
beforeAll(() => path.__mockPath(type));
|
||||
afterAll(() => jest.restoreAllMocks());
|
||||
beforeEach(setupDateMocks);
|
||||
|
||||
Reference in new issue
Block a user