diff --git a/test/helpers/getCompiler.js b/test/helpers/getCompiler.js index 12622781..0ff43e42 100644 --- a/test/helpers/getCompiler.js +++ b/test/helpers/getCompiler.js @@ -20,7 +20,7 @@ export default (fixture, loaderOptions = {}, config = {}) => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../../src'), + loader: path.resolve(__dirname, '../../src/cjs.js'), options: loaderOptions || {}, }, loaderOptions && diff --git a/test/loader.test.js b/test/loader.test.js index ccac85a2..a19aba17 100644 --- a/test/loader.test.js +++ b/test/loader.test.js @@ -65,7 +65,7 @@ describe('loader', () => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../src'), + loader: path.resolve(__dirname, '../src/cjs.js'), options: { injectType }, }, injectType === 'linkTag' @@ -147,7 +147,7 @@ describe('loader', () => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../src'), + loader: path.resolve(__dirname, '../src/cjs.js'), options: { injectType }, }, injectType === 'linkTag' @@ -188,7 +188,7 @@ describe('loader', () => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../src'), + loader: path.resolve(__dirname, '../src/cjs.js'), options: { injectType }, }, injectType === 'linkTag' @@ -225,7 +225,7 @@ describe('loader', () => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../src'), + loader: path.resolve(__dirname, '../src/cjs.js'), options: { injectType }, }, injectType === 'linkTag' @@ -262,7 +262,7 @@ describe('loader', () => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../src'), + loader: path.resolve(__dirname, '../src/cjs.js'), options: { injectType }, }, injectType === 'linkTag'