@@ -3,8 +3,7 @@ import { Resolver } from '../../../src/commands/resolver/resolver'
3
3
import * as fs from 'fs'
4
4
import * as fse from 'fs-extra'
5
5
6
- //TODO - remove only
7
- describe . only ( 'Resolver command test' , ( ) => {
6
+ describe ( 'Resolver command test' , ( ) => {
8
7
let res : AbstractCommand
9
8
const pathToType = './test/commands/resolver/test-schema.ts'
10
9
const pathToActualResolver = './test/output/actual/test-resolver.ts'
@@ -41,7 +40,7 @@ describe.only('Resolver command test', () => {
41
40
expect ( act ) . toBeInstanceOf ( Function )
42
41
} )
43
42
44
- it . only ( 'works if resolver file was generated' , async ( ) => {
43
+ it ( 'works if resolver file was generated' , async ( ) => {
45
44
const actFunction = res . getAction ( )
46
45
await actFunction ( pathToType , pathToActualResolver )
47
46
const resolverFileExist : boolean = fs . existsSync ( pathToActualResolver )
@@ -69,20 +68,6 @@ describe.only('Resolver command test', () => {
69
68
expect ( actualContent ) . toEqual ( expectedContent )
70
69
} )
71
70
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
-
86
71
it ( 'works if resolver command does not override existing file' , async ( ) => {
87
72
const actFunction = res . getAction ( )
88
73
await actFunction ( pathToType , pathToNonOverridenFile )
0 commit comments