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