@@ -5,8 +5,8 @@ import { loadConfig, prepareConfig } from '../../lib/config.js'
5
5
describe ( 'kopflos/lib/config.js' , function ( ) {
6
6
this . timeout ( 10000 )
7
7
8
- describe ( 'loadConfig' , ( ) => {
9
- it ( 'should discover the config file' , async ( ) => {
8
+ describe ( 'loadConfig' , function ( ) {
9
+ it ( 'should discover the config file' , async function ( ) {
10
10
const { config } = await loadConfig ( {
11
11
path : undefined ,
12
12
root : url . fileURLToPath ( new URL ( '..' , import . meta. url ) ) ,
@@ -17,7 +17,7 @@ describe('kopflos/lib/config.js', function () {
17
17
} )
18
18
} )
19
19
20
- it ( 'should load config from path' , async ( ) => {
20
+ it ( 'should load config from path' , async function ( ) {
21
21
// given
22
22
const configPath = url . fileURLToPath ( new URL ( '../fixtures/config.json' , import . meta. url ) )
23
23
@@ -33,8 +33,8 @@ describe('kopflos/lib/config.js', function () {
33
33
} )
34
34
} )
35
35
36
- describe ( 'prepareConfig' , ( ) => {
37
- it ( 'sets config itself as watched paths' , async ( ) => {
36
+ describe ( 'prepareConfig' , function ( ) {
37
+ it ( 'sets config itself as watched paths' , async function ( ) {
38
38
// given
39
39
const configPath = url . fileURLToPath ( new URL ( '../fixtures/config.json' , import . meta. url ) )
40
40
@@ -50,7 +50,7 @@ describe('kopflos/lib/config.js', function () {
50
50
expect ( config . watch ) . to . deep . eq ( [ configPath ] )
51
51
} )
52
52
53
- it ( 'adds config itself to watched paths' , async ( ) => {
53
+ it ( 'adds config itself to watched paths' , async function ( ) {
54
54
// given
55
55
const configPath = url . fileURLToPath ( new URL ( '../fixtures/config.with-watch.json' , import . meta. url ) )
56
56
@@ -66,7 +66,7 @@ describe('kopflos/lib/config.js', function () {
66
66
expect ( config . watch ) . to . contain . all . members ( [ configPath , 'lib' ] )
67
67
} )
68
68
69
- it ( 'rebase relative plugin paths to config path' , async ( ) => {
69
+ it ( 'rebase relative plugin paths to config path' , async function ( ) {
70
70
// given
71
71
const configPath = url . fileURLToPath ( new URL ( '../fixtures/config.with-relative.json' , import . meta. url ) )
72
72
0 commit comments