Sha256: 174cabab31481e0c5eefb4fda4eaf5636549f6d52272cfe322cb00e539373be8
Contents?: true
Size: 668 Bytes
Versions: 11
Compression:
Stored size: 668 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' const { environment } = require('../index') const config = environment.toWebpackConfig() expect(config.output.path).toEqual(resolve('public', 'packs-test')) expect(config.output.publicPath).toEqual('/packs-test/') }) }) })
Version data entries
11 entries across 11 versions & 2 rubygems