Skip to content

Commit 06e5285

Browse files
committed
Do not run parse test on windows
1 parent 5fb8f22 commit 06e5285

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

__tests__/build-parameters.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const exec = (cmd: string, options: ExecOptions): Promise<string> =>
2929
const buildProject = async (project: string) => {
3030
await exec(`cp tsconfig.${project}.json tsconfig.json`, {cwd: testDir});
3131

32-
console.log(`buildProject cli ${cli}`);
3332
await exec(`node ${cli} ./src/Example.ts ExampleType`, {
3433
cwd: testDir,
3534
});

__tests__/newVsOld.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import loadTsConfig from '../src/loadTsConfig';
55
import path from 'path';
66
import {isNull} from 'lodash';
77

8-
describe('Compare perivous schema gen to new', () => {
8+
const des = process.platform === 'win32' ? describe.skip : describe;
9+
10+
des('Compare perivous schema gen to new', () => {
911
test.each([
1012
{file: 'ComplexExample.ts'},
1113
{file: 'Example.ts'},

__tests__/parse.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import parse from './parse';
22
import Ajv from 'ajv';
33
import loadTsConfig from '../src/loadTsConfig';
44

5-
test('parse', () => {
5+
const it = process.platform === 'win32' ? describe.skip : describe;
6+
7+
it('parse', () => {
68
if (process.platform === 'win32') {
79
return;
810
}
@@ -14,7 +16,7 @@ test('parse', () => {
1416
).toMatchSnapshot();
1517
});
1618

17-
test('ajv', () => {
19+
it('ajv', () => {
1820
if (process.platform === 'win32') {
1921
return;
2022
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"prepush": "pnpm prettier:diff && pnpm test",
2828
"prettier": "prettier --ignore-path .gitignore --write './**/*.{js,jsx,ts,tsx}'",
2929
"prettier:diff": "cross-env prettier --ignore-path .gitignore --list-different './**/*.{js,jsx,ts,tsx}'",
30-
"ci:test": "pnpm test -- --silent"
30+
"ci:test": "pnpm test"
3131
},
3232
"devDependencies": {
3333
"@shopify/jest-koa-mocks": "3.1.5",

src/printValidator.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export function printTypeCollectionValidator(
2929
if (!isDefinition(schema.definitions[typeName])) return false;
3030
return isKoaType(schema.definitions[typeName]);
3131
});
32-
console.log(`printTypeCollectionValidator : ${relativePath}`);
3332
return [
3433
t.TSLINT_DISABLE,
3534
t.GENERATED_COMMENT,
@@ -67,7 +66,6 @@ export function printSingleTypeValidator(
6766
tsConfig: Tsconfig,
6867
options: Ajv.Options = {},
6968
) {
70-
console.log(`printSingleTypeValidator : ${relativePath}`);
7169
return [
7270
t.TSLINT_DISABLE,
7371
t.GENERATED_COMMENT,

0 commit comments

Comments
 (0)