diff --git a/packages/core/test/one/index.js b/packages/core/test/one/index.js index 545f3c7..e4d54e6 100644 --- a/packages/core/test/one/index.js +++ b/packages/core/test/one/index.js @@ -13,10 +13,11 @@ export const hooks = { foo: 'bar', }), '@flecks/core/one/test-gather': ( - Flecks.provide(require.context('./things', false, /\.js$/)) + // @todo We have to explicitly start the pattern with a dot due to RequireContextPlugin. + Flecks.provide(require.context('./things', false, /^\..*\.js$/)) ), '@flecks/core/one/test-gather.decorate': ( - Flecks.decorate(require.context('./things/decorators', false, /\.js$/)) + Flecks.decorate(require.context('./things/decorators', false, /\..*\.js$/)) ), '@flecks/core/test/invoke': () => 69, '@flecks/core/test/invoke-parallel': (O) => { diff --git a/packages/core/test/two/index.js b/packages/core/test/two/index.js index cc7d131..b60dc3c 100644 --- a/packages/core/test/two/index.js +++ b/packages/core/test/two/index.js @@ -2,7 +2,7 @@ import {Flecks} from '@flecks/core'; export const hooks = { '@flecks/core/one/test-gather': ( - Flecks.provide(require.context('./things', false, /\.js$/)) + Flecks.provide(require.context('./things', false, /^\..*\.js$/)) ), '@flecks/core/test/invoke': () => 420, '@flecks/core/test/invoke-parallel': (O) => new Promise((resolve) => {