From 552ad6be49de2825fd9270fef1b0b1202b48ac11 Mon Sep 17 00:00:00 2001 From: palumbon Date: Sun, 17 Dec 2023 14:28:41 +0100 Subject: [PATCH] Fix - run inference tests on CI 3 --- package.json | 2 +- test/typeSystemInference.test.ts | 3 ++- test/validator.test.ts | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fa8fba18..f645db2c 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "test:examples": "npm run test:wtest -- --root language/test/examples", "test:sanity": "npm run test:wtest -- --root language/test/sanity", "test:validations": "mocha --parallel -r ts-node/register/transpile-only test/validator.test.ts", - "test:typeSystem": "mocha --parallel -r ts-node/register/transpile-only test/typeSystemInference.test.ts", + "test:typeSystem": "mocha --parallel -r ts-node/register/transpile-only test/typeSystem*.test.ts", "test:wtest": "mocha --delay -t 10000 -r ts-node/register/transpile-only test/wtest.ts", "test:printer": "mocha --parallel -r ts-node/register/transpile-only test/printer.test.ts", "test:parser": "mocha --parallel -r ts-node/register/transpile-only test/parser.test.ts", diff --git a/test/typeSystemInference.test.ts b/test/typeSystemInference.test.ts index d2818888..172fac20 100644 --- a/test/typeSystemInference.test.ts +++ b/test/typeSystemInference.test.ts @@ -1,11 +1,12 @@ import { fail } from 'assert' import { should } from 'chai' +import { join } from 'path' import { getPotentiallyUninitializedLazy } from '../src/decorators' import { inferTypes } from '../src/typeSystem/constraintBasedTypeSystem' import validate from '../src/validator' import { allExpectations, buildEnvironmentForEachFile, validateExpectationProblem } from './utils' -const TESTS_PATH = 'language/test/typeSystem' +const TESTS_PATH = join('language', 'test', 'typesystem') should() diff --git a/test/validator.test.ts b/test/validator.test.ts index 8cc704d4..c1eeada9 100644 --- a/test/validator.test.ts +++ b/test/validator.test.ts @@ -1,9 +1,10 @@ import { fail } from 'assert' import { should } from 'chai' +import { join } from 'path' import validate from '../src/validator' import { allExpectations, buildEnvironmentForEachFile, errorLocation, matchesExpectationProblem, validateExpectationProblem } from './utils' -const TESTS_PATH = 'language/test/validations' +const TESTS_PATH = join('language', 'test', 'validations') should()