mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-05 12:50:18 +03:00
chore: cli test run ts files
This commit is contained in:
parent
b2d8ef7312
commit
313d043afb
|
@ -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,
|
||||
|
|
|
@ -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" ',
|
||||
|
|
Loading…
Reference in New Issue
Block a user