mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 05:10:20 +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', () => {
|
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,
|
||||||
|
|
|
@ -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" ',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user