Skip to content

Commit 1fee55f

Browse files
committed
test(): paths fixed to match current location of tests
Signed-off-by: Vojtech Masek <[email protected]>
1 parent 2f18f73 commit 1fee55f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const stateSymbols: {[key in State]: string} = {
1515
};
1616

1717
async function runTests(): Promise<number> {
18-
const testsOutDir = `${__dirname}/tests-output`;
18+
const testsOutDir = `${__dirname}/../tests/tests-output`;
1919

2020
if (await promisify(exists)(testsOutDir)) {
2121
await promisify(rimraf)(testsOutDir);
@@ -26,7 +26,7 @@ async function runTests(): Promise<number> {
2626
const testReturnValues = await Promise.all(testReferences.map(async (reference) => {
2727
console.info(`Running test for ${reference}`);
2828

29-
const refDir = `${__dirname}/${reference}`;
29+
const refDir = `${__dirname}/../tests/${reference}`;
3030
const genDir = `${testsOutDir}/${reference}`;
3131

3232
await generateAPIClient(`${refDir}/swagger.yaml`, genDir)

0 commit comments

Comments
 (0)