Sha256: 9db7bc78299e850336c27c12773a06a8762c9c1cdee7304481fe07d1a3ade059
Contents?: true
Size: 776 Bytes
Versions: 11
Compression:
Stored size: 776 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' 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
11 entries across 11 versions & 2 rubygems