Commit Graph

15 Commits

Author SHA1 Message Date
Haoqun Jiang
0909bc8688 fix: revert file name hashing in dev mode
closes #2492

The change was intended to mitigate the problem that Safari keeps caching
dev bundles.

But it caused several unintended bugs:
1. [Hashes in file names with HMR enabled might cause memory leaks](https://github.com/webpack/webpack-dev-server/issues/377#issuecomment-241258405)
2. Moving the hash to file query also breaks many webpack loaders:
  1. [mocha-webpack](f683583078)
  2. [django-webpack-loader](https://github.com/vuejs/vue-cli/issues/2492))

So till we find a better way to solve this issue, hashes in dev bundles
should be removed.
2018-09-12 12:49:54 +08:00
Haoqun Jiang
f683583078 fix: fix file name resovling in mocha env 2018-09-10 20:17:27 +08:00
Jianrong Yu
2243515e3b feat(service): Enable inspector debugging for unit test by mocha (#2013) 2018-08-05 23:22:22 -04:00
Evan You
c5ea39a088 chore: remove deprecated alias 2018-08-05 21:46:50 -04:00
Evan You
460c200d28 fix(unit-mocha): node externals are unnecessary for testing client code
close #1548
2018-06-11 16:27:17 -04:00
Evan You
7ce91c89f2 workflow: enable eslint node/no-extraneous-require 2018-05-30 10:25:33 -04:00
Evan You
aa07942638 chore: backwards compatible warnings for test commands rename 2018-05-03 14:39:31 -04:00
Evan You
69ebd800a2 refactor: rename test commands
BREAKING CHANGE: `cli-plugin-unit-jest` and `cli-plugin-unit-mocha` now register
"test:unit" command and script instead of "test"; `cli-plugin-e2e-cypress` now
register "test:e2e" with optional `--headless` flag instead of "e2e" and
"e2e:open"; `cli-plugin-e2e-nightwatch` now register "test:e2e" instead of "e2e".

close #876, close #878
2018-05-01 18:15:25 -04:00
Evan You
d595adacf4 refactor: adjust mode loading order
BREAKING CHANGE: PluginAPI.setMode() has been removed. Instead, for a plugin to
sepcify the default mode for a registered command, the plugins should expose
`module.exports.defaultModes` in the form of `{ [commandName]: mode }`.

close #959
2018-05-01 17:14:33 -04:00
Evan You
fe9aed83bd fix: externalize vue-server-renderer + support dynamic import in mocha tests 2018-03-02 22:12:56 -05:00
Evan You
64b4515731 refactor: change default test directory name to "tests"
BREAKING CHANGE: all tests are now located in "tests" instead of "test"
close #877
2018-02-28 18:07:06 -05:00
Evan You
dd6cd856e2 docs: readme for plugins 2018-02-08 17:25:43 -05:00
Evan You
172e8ebaa0 fix(unit-mocha): fix test glob to avoid running e2e tests
fix #790
2018-02-06 10:39:41 -05:00
Evan You
957e08d3f0 tweak ts setup 2018-01-11 01:55:08 -05:00
Evan You
e773479272 WIP: TS compat with other plugins 2018-01-11 00:37:21 -05:00