diff --git a/lib/install/config/webpack/test.js b/lib/install/config/webpack/test.js deleted file mode 100644 index c5edff94a..000000000 --- a/lib/install/config/webpack/test.js +++ /dev/null @@ -1,5 +0,0 @@ -process.env.NODE_ENV = process.env.NODE_ENV || 'development' - -const environment = require('./environment') - -module.exports = environment.toWebpackConfig() diff --git a/package/__tests__/test.js b/package/__tests__/test.js deleted file mode 100644 index 4fa6cbff0..000000000 --- a/package/__tests__/test.js +++ /dev/null @@ -1,23 +0,0 @@ -/* test expect, describe, afterAll, beforeEach */ - -const { resolve } = require('path') -const { chdirTestApp, chdirCwd } = require('../utils/helpers') - -chdirTestApp() - -describe('Test environment', () => { - afterAll(chdirCwd) - - describe('toWebpackConfig', () => { - beforeEach(() => jest.resetModules()) - - test('should use test config and production environment', () => { - process.env.RAILS_ENV = 'test' - const { environment } = require('../index') - - const config = environment.toWebpackConfig() - expect(config.output.path).toEqual(resolve('public', 'packs-test')) - expect(config.output.publicPath).toEqual('/packs-test/') - }) - }) -})