Sha256: 0efcb9a661fd2832d4d8c06c30602683b256d05ac9d3d78ef630505bfec80ec0
Contents?: true
Size: 727 Bytes
Versions: 40
Compression:
Stored size: 727 Bytes
Contents
/* 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' process.env.NODE_ENV = 'test' const { webpackConfig } = require('../index') expect(webpackConfig.output.path).toEqual(resolve('public', 'packs-test')) expect(webpackConfig.output.publicPath).toEqual('/packs-test/') expect(webpackConfig.devServer).toEqual(undefined) }) }) })
Version data entries
40 entries across 40 versions & 2 rubygems