Sha256: e90a854ef79b7f2cb852e297b4ab9fbeba22a02bac1f20003267dca4b63da531
Contents?: true
Size: 780 Bytes
Versions: 40
Compression:
Stored size: 780 Bytes
Contents
/* test expect, describe, afterAll, beforeEach */ const { resolve } = require('path') const { chdirTestApp, chdirCwd } = require('../utils/helpers') chdirTestApp() describe('Production environment', () => { afterAll(chdirCwd) describe('webpackConfig', () => { beforeEach(() => jest.resetModules()) test('should use production config and environment', () => { process.env.RAILS_ENV = 'production' process.env.NODE_ENV = 'production' const { webpackConfig } = require('../index') expect(webpackConfig.output.path).toEqual(resolve('public', 'packs')) expect(webpackConfig.output.publicPath).toEqual('/packs/') expect(webpackConfig).toMatchObject({ devtool: 'source-map', stats: 'normal' }) }) }) })
Version data entries
40 entries across 40 versions & 2 rubygems