Skip to content

Commit

Permalink
Fix jest and Ruby tests
Browse files Browse the repository at this point in the history
  • Loading branch information
justin808 committed Jun 23, 2021
1 parent 9e282f6 commit ab5a7a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package/__tests__/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Development environment', () => {
test('should use development config and environment including devServer if WEBPACK_DEV_SERVER', () => {
process.env.RAILS_ENV = 'development'
process.env.NODE_ENV = 'development'
process.env.WEBPACK_DEV_SERVER = 'YES'
process.env.WEBPACK_DEV_SERVER = 'true'
const { webpackConfig } = require('../index')

expect(webpackConfig.output.path).toEqual(resolve('public', 'packs'))
Expand Down
4 changes: 2 additions & 2 deletions test/webpacker_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def dev_server.pretty?; false; end
def dev_server.https?; true; end
def dev_server.hmr?; true; end
def dev_server.running?; true; end
Webpacker::DevServer.stub(:new, dev_server) do
assert !Webpacker.inlining_css?
Webpacker.instance.stub(:dev_server, dev_server) do
assert Webpacker.inlining_css?
end
end
end

0 comments on commit ab5a7a5

Please sign in to comment.