Sha256: 91e9df8897ef42d177412afe3241b08f44a716112250dd6a43275d706d64643d
Contents?: true
Size: 630 Bytes
Versions: 12
Compression:
Stored size: 630 Bytes
Contents
const index = require('../index') describe('index', () => { describe('webpackConfig', () => { test('is a global object', () => { const { webpackConfig, globalMutableWebpackConfig } = require('../index') expect(webpackConfig).toBe(globalMutableWebpackConfig) }) test('Shows warning with deprecation message', () => { const consoleSpy = jest.spyOn(console, "warn"); const { webpackConfig } = require('../index') expect(consoleSpy).toHaveBeenCalledWith( expect.stringMatching(/The 'webpackConfig' is deprecated/) ) consoleSpy.mockRestore(); }) }) })
Version data entries
12 entries across 12 versions & 1 rubygems