Sha256: 8c7a147669ac2b080ae79d48bce914e3f5bcf944fe7fccc30bb8ed99bd2ce467
Contents?: true
Size: 880 Bytes
Versions: 1
Compression:
Stored size: 880 Bytes
Contents
const { resolve } = require("path") const { chdirTestApp } = require("../helpers") const rootPath = process.cwd() chdirTestApp() describe("Custom environment", () => { afterAll(() => process.chdir(rootPath)) describe("generateWebpackConfig", () => { beforeEach(() => jest.resetModules()) test("should use staging config and default production environment", () => { process.env.RAILS_ENV = "staging" delete process.env.NODE_ENV const { generateWebpackConfig } = require("../../package/index") const webpackConfig = generateWebpackConfig() expect(webpackConfig.output.path).toStrictEqual( resolve("public", "packs-staging") ) expect(webpackConfig.output.publicPath).toBe("/packs-staging/") 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/staging.test.js |