Skip to content

Commit 7d27890

Browse files
author
David Heinemeier Hansson
committed
Adjust for new ENV
1 parent 9675fbd commit 7d27890

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package/__tests__/development.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('Development environment', () => {
1111
describe('webpackConfig', () => {
1212
beforeEach(() => jest.resetModules())
1313

14-
test('should use development config and environment including devServer if WEBPACK_DEV_SERVER', () => {
14+
test('should use development config and environment including devServer if WEBPACK_SERVE', () => {
1515
process.env.RAILS_ENV = 'development'
1616
process.env.NODE_ENV = 'development'
1717
process.env.WEBPACK_DEV_SERVER = 'true'
@@ -28,7 +28,7 @@ describe('Development environment', () => {
2828
})
2929
})
3030

31-
test('should use development config and environment if WEBPACK_DEV_SERVER', () => {
31+
test('should use development config and environment if WEBPACK_SERVE', () => {
3232
process.env.RAILS_ENV = 'development'
3333
process.env.NODE_ENV = 'development'
3434
process.env.WEBPACK_DEV_SERVER = undefined

test/dev_server_runner_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_environment_variables
5050
cmd = ["#{test_app_path}/node_modules/.bin/webpack", "serve", "--config", "#{test_app_path}/config/webpack/development.js"]
5151
env = Webpacker::Compiler.env.dup
5252
ENV["WEBPACKER_CONFIG"] = env["WEBPACKER_CONFIG"] = "#{test_app_path}/config/webpacker_other_location.yml"
53-
env["WEBPACK_DEV_SERVER"] = "true"
53+
env["WEBPACK_SERVE"] = "true"
5454
verify_command(cmd, env: env)
5555
end
5656

0 commit comments

Comments
 (0)