Sha256: 5ec514399591e4917aef69c0f60f23f796251ae51681162b9899e6bf75c5b39a
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
const { resolve } = require("path") const { chdirTestApp } = require("../helpers") const rootPath = process.cwd() chdirTestApp() describe("Production environment", () => { afterAll(() => process.chdir(rootPath)) describe("generateWebpackConfig", () => { beforeEach(() => jest.resetModules()) test("should use production config and environment", () => { process.env.RAILS_ENV = "production" process.env.NODE_ENV = "production" const { generateWebpackConfig } = require("../../package/index") const webpackConfig = generateWebpackConfig() expect(webpackConfig.output.path).toStrictEqual( resolve("public", "packs") ) expect(webpackConfig.output.publicPath).toBe("/packs/") expect(webpackConfig).toMatchObject({ devtool: "source-map", stats: "normal" }) }) }) })
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shakapacker-8.0.1 | test/package/production.test.js |