chore: cli test run ts files

This commit is contained in:
Alex Varchuk 2022-05-11 11:34:23 +03:00
parent b2d8ef7312
commit 313d043afb
2 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@ import { readFileSync } from 'fs';
describe('build', () => {
it('should use .redocly.yaml', () => {
const r = spawnSync(
'node',
['../../../index.js', 'build', ' ../../../../demo/openapi.yaml', '--output=redocTest.html'],
'ts-node',
['../../../index.ts', 'build', ' ../../../../demo/openapi.yaml', '--output=redocTest.html'],
{
cwd: __dirname,
shell: true,

View File

@ -4,9 +4,9 @@ import { readFileSync } from 'fs';
describe('build with inline options', () => {
it('should use inline options and ignore .redocly.yaml', () => {
const r = spawnSync(
'node',
'ts-node',
[
'../../../index.js',
'../../../index.ts',
'build',
' ../../../../demo/openapi.yaml',
'--options.disableSearch="false" ',