Skip to content

Commit 2e9d3bf

Browse files
committed
test: small change in test
testing capability to create in recursive directory
1 parent de65381 commit 2e9d3bf

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

test/commands/resolver/resolver.test.ts

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Resolver } from '../../../src/commands/resolver/resolver'
33
import * as fs from 'fs'
44
import * as fse from 'fs-extra'
55

6-
//TODO - remove only
7-
describe.only('Resolver command test', () => {
6+
describe('Resolver command test', () => {
87
let res: AbstractCommand
98
const pathToType = './test/commands/resolver/test-schema.ts'
109
const pathToActualResolver = './test/output/actual/test-resolver.ts'
@@ -41,7 +40,7 @@ describe.only('Resolver command test', () => {
4140
expect(act).toBeInstanceOf(Function)
4241
})
4342

44-
it.only('works if resolver file was generated', async () => {
43+
it('works if resolver file was generated', async () => {
4544
const actFunction = res.getAction()
4645
await actFunction(pathToType, pathToActualResolver)
4746
const resolverFileExist: boolean = fs.existsSync(pathToActualResolver)
@@ -69,20 +68,6 @@ describe.only('Resolver command test', () => {
6968
expect(actualContent).toEqual(expectedContent)
7069
})
7170

72-
// it('works if resolver file is in dir and identical to expected', async () => {
73-
// const actFunction = res.getAction()
74-
// await actFunction(pathToType, pathToDirectoryActualResolver)
75-
// const expectedContent = fs
76-
// .readFileSync(pathToExpectedResolver)
77-
// .toString()
78-
// .replace(/\s/g, '')
79-
// const actualContent = fs
80-
// .readFileSync(pathToDirectoryActualResolver)
81-
// .toString()
82-
// .replace(/\s/g, '')
83-
// expect(actualContent).toEqual(expectedContent)
84-
// })
85-
8671
it('works if resolver command does not override existing file', async () => {
8772
const actFunction = res.getAction()
8873
await actFunction(pathToType, pathToNonOverridenFile)

0 commit comments

Comments
 (0)