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

Version Path
shakapacker-7.2.3 package/__tests__/index-bc.js
shakapacker-7.3.0.beta.1 package/__tests__/index-bc.js
shakapacker-7.2.2 package/__tests__/index-bc.js
shakapacker-7.2.1 package/__tests__/index-bc.js
shakapacker-7.2.0 package/__tests__/index-bc.js
shakapacker-7.2.0.rc.0 package/__tests__/index-bc.js
shakapacker-7.1.0 package/__tests__/index-bc.js
shakapacker-7.0.3 package/__tests__/index-bc.js
shakapacker-7.0.2 package/__tests__/index-bc.js
shakapacker-7.0.1 package/__tests__/index-bc.js
shakapacker-7.0.0 package/__tests__/index-bc.js
shakapacker-7.0.0.rc.2 package/__tests__/index-bc.js