File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- export const version = '4.4.0 ' ;
1
+ export const version = '5.0.1 ' ;
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict' ;
2
2
import test from 'node:test' ;
3
3
import { helpText } from '../src/util/cli-arguments.js' ;
4
+ import { loadJSON } from '../src/util/fs.js' ;
4
5
import { resolve } from '../src/util/path.js' ;
5
6
import { version } from '../src/version.js' ;
6
7
import { execFactory } from './helpers/exec.js' ;
@@ -9,8 +10,11 @@ const cwd = resolve('fixtures/cli');
9
10
10
11
const exec = execFactory ( cwd ) ;
11
12
12
- test ( 'knip --version' , ( ) => {
13
+ test ( 'knip --version' , async ( ) => {
13
14
assert . equal ( exec ( 'knip --version' ) . stdout , version ) ;
15
+
16
+ const contents = await loadJSON ( resolve ( 'package.json' ) ) ;
17
+ assert . equal ( version , contents . version ) ;
14
18
} ) ;
15
19
16
20
test ( 'knip --help' , ( ) => {
You can’t perform that action at this time.
0 commit comments