diff options
author | rmacklin <1863540+rmacklin@users.noreply.github.com> | 2018-11-26 14:16:02 -0800 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2018-11-26 17:16:02 -0500 |
commit | 85b080365313437f646070ca214fef433c06db6a (patch) | |
tree | a2df565070129cef9f5064b565229a1a9ad96be5 /actioncable/package.json | |
parent | 38b676181b7cce5191b1877ad6781c490d38436d (diff) | |
download | rails-85b080365313437f646070ca214fef433c06db6a.tar.gz rails-85b080365313437f646070ca214fef433c06db6a.tar.bz2 rails-85b080365313437f646070ca214fef433c06db6a.zip |
Convert ActionCable tests from CoffeeScript to ES2015 and replace Blade with Karma and Rollup (#34440)
* Rename .coffee files in ActionCable test suite in prep for decaffeination
* Decaffeinate ActionCable tests
* Replace Blade with Karma and Rollup to run ActionCable JS tests
- Add karma and qunit devDependencies
- Add test script to ActionCable package
- Use rollup to bundle ActionCable tests
- Use karma as the ActionCable JS test runner
* Replace vendored mock-socket with package devDependency in ActionCable
* Move ActionCable yarn install to TravisCI before_install config
* Clean up decaffeinated ActionCable tests to use consistent formatting
Diffstat (limited to 'actioncable/package.json')
-rw-r--r-- | actioncable/package.json | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/actioncable/package.json b/actioncable/package.json index 5d5105a6d5..ba641b64a3 100644 --- a/actioncable/package.json +++ b/actioncable/package.json @@ -27,6 +27,12 @@ "babel-preset-env": "^1.6.0", "eslint": "^4.3.0", "eslint-plugin-import": "^2.7.0", + "karma": "^3.1.1", + "karma-chrome-launcher": "^2.2.0", + "karma-qunit": "^2.1.0", + "karma-sauce-launcher": "^1.2.0", + "mock-socket": "^2.0.0", + "qunit": "^2.8.0", "rollup": "^0.58.2", "rollup-plugin-babel": "^3.0.4", "rollup-plugin-commonjs": "^9.1.0", @@ -36,6 +42,8 @@ "scripts": { "prebuild": "yarn lint && bundle exec rake assets:codegen", "build": "rollup --config rollup.config.js", - "lint": "eslint app/javascript" + "lint": "eslint app/javascript", + "pretest": "bundle exec rake assets:codegen && rollup --config rollup.config.test.js", + "test": "karma start" } } |