Sha256: 895286aecc24787bd97f9f7ec128f83d19e7e1ab4f9e946d40994b0687b90e4d
Contents?: true
Size: 921 Bytes
Versions: 26
Compression:
Stored size: 921 Bytes
Contents
/* global test expect, describe */ const { chdirCwd, chdirTestApp, resetEnv } = require('../utils/helpers') chdirTestApp() const config = require('../config') describe('Config', () => { beforeEach(() => jest.resetModules() && resetEnv()) afterAll(chdirCwd) test('public path', () => { process.env.RAILS_ENV = 'development' const config = require('../config') expect(config.publicPath).toEqual('/packs/') }) test('public path with asset host', () => { process.env.RAILS_ENV = 'development' process.env.WEBPACKER_ASSET_HOST = 'http://foo.com/' const config = require('../config') expect(config.publicPath).toEqual('http://foo.com/packs/') }) test('should return additional paths as listed in app config, with resolved paths', () => { expect(config.additional_paths).toEqual([ 'app/assets', '/etc/yarn', 'some.config.js', 'app/elm' ]) }) })
Version data entries
26 entries across 26 versions & 2 rubygems