@@ -2,12 +2,13 @@ import assert from 'node:assert/strict';
2
2
import test from 'node:test' ;
3
3
import * as gatsby from '../../src/plugins/gatsby/index.js' ;
4
4
import { resolve , join } from '../../src/util/path.js' ;
5
+ import { pluginConfig as config } from '../helpers/index.js' ;
5
6
6
7
const cwd = resolve ( 'fixtures/plugins/gatsby' ) ;
7
8
8
9
test ( 'Find dependencies in Gatsby configuration (gatsby-config.js)' , async ( ) => {
9
10
const configFilePath = join ( cwd , 'gatsby-config.js' ) ;
10
- const dependencies = await gatsby . findDependencies ( configFilePath , { } ) ;
11
+ const dependencies = await gatsby . findDependencies ( configFilePath , { config } ) ;
11
12
assert . deepEqual ( dependencies , [
12
13
'@sentry/gatsby' ,
13
14
'gatsby-plugin-webpack-bundle-analyser-v2' ,
@@ -25,7 +26,7 @@ test('Find dependencies in Gatsby configuration (gatsby-config.js)', async () =>
25
26
26
27
test ( 'Find dependencies in Gatsby configuration (gatsby-node.js)' , async ( ) => {
27
28
const configFilePath = join ( cwd , 'gatsby-node.js' ) ;
28
- const dependencies = await gatsby . findDependencies ( configFilePath , { } ) ;
29
+ const dependencies = await gatsby . findDependencies ( configFilePath , { config } ) ;
29
30
assert . deepEqual ( dependencies , [
30
31
'@babel/plugin-proposal-function-bind' ,
31
32
'@babel/plugin-proposal-export-default-from' ,
0 commit comments