scaffolder-backend: fix or skip tests on windows
This commit is contained in:
@@ -96,6 +96,8 @@ describe('GitHubPreparer', () => {
|
||||
mockEntity.spec.path = './template/test/1/2/3';
|
||||
const response = await preparer.prepare(mockEntity);
|
||||
|
||||
expect(response).toMatch(new RegExp(/\/template\/test\/1\/2\/3$/));
|
||||
expect(response.split('\\').join('/')).toMatch(
|
||||
/\/template\/test\/1\/2\/3$/,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -20,6 +20,13 @@ import Docker from 'dockerode';
|
||||
import { runDockerContainer } from './helpers';
|
||||
|
||||
describe('helpers', () => {
|
||||
if (process.platform === 'win32') {
|
||||
// eslint-disable-next-line jest/no-focused-tests
|
||||
it.only('should skip tests on windows', () => {
|
||||
expect('test').not.toBe('run');
|
||||
});
|
||||
}
|
||||
|
||||
const mockDocker = new Docker() as jest.Mocked<Docker>;
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user