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', () => { describe('build', () => {
it('should use .redocly.yaml', () => { it('should use .redocly.yaml', () => {
const r = spawnSync( const r = spawnSync(
'node', 'ts-node',
['../../../index.js', 'build', ' ../../../../demo/openapi.yaml', '--output=redocTest.html'], ['../../../index.ts', 'build', ' ../../../../demo/openapi.yaml', '--output=redocTest.html'],
{ {
cwd: __dirname, cwd: __dirname,
shell: true, shell: true,

View File

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