Commit Graph

36 Commits

Author SHA1 Message Date
Pooya Parsa
9c1e0d1743 feat: migrate nuxt into monorepo (#4051)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
Co-authored-by: Pooya Parsa <pooya@pi0.ir>
2018-10-18 00:58:25 +03:30
Jonas Galvez
a3dd7dad6b feat: configurable global name (#4012)
Co-authored-by: JuliaNeumann <jn.julianeumann@gmail.com>
2018-10-09 15:38:33 +03:30
Pim
88c9bae57b feat: add tests to check for changed files (#3893)
* feat: add tests to check for changed files

Make sure that if we are building or generating only files in buildDir and generate.dir are changed. If files in another location would also be changed due to a new config option, those locations should be guarded in lib/common/options so you cant set them lower then rootDir or srcDir.

* fix running tests inBand

use simpler path comparisons

* add debug logs for ci

use process.hrtime for waitFor test

* add debug logs for ci

use process.hrtime for waitFor test

* use writeFileSync should probably help

* use forEach instead of map when not returning a value

update waitFor test to compare values with jest

* fix appeveyor

* use lower limit than delay in waitFor test

revert isAppveyor export
2018-09-18 16:26:41 +02:00
Clark Du
281e2dc600 test: skip sockets test in windows platform 2018-09-13 10:07:34 +01:00
Alexander Lichter
b74d537cba feat(renderer): make compression middleware customizable (#3863) 2018-09-09 00:48:14 +04:30
Pooya Parsa
f85465386c
feat: move nuxt-legacy and nuxt-start into packages (#3824) 2018-08-31 22:51:41 +04:30
Clark Du
432720b8c8 fix: appveyor test failure (#3754)
* fix: appveyor test failure

* ci: bring back yarn cache

* ci: turn off matrix

* refactor: use babel instead of esm in jest

* refactor: use es modules in fixtures
2018-08-17 22:25:23 +02:00
Clark Du
c395e20e5b refactor: mock consola in test 2018-08-16 17:23:26 +01:00
Clark Du
50be809b1c
refactor: plugin sanity check (#3743) 2018-08-16 16:34:32 +01:00
Clark Du
c4792d247b refactor: options.test from env CI or test 2018-08-10 17:37:20 +01:00
Clark Du
11bd31e788 refactor: only show build errors in test mode 2018-08-10 17:13:56 +01:00
Clark Du
9b060f3be1
feat: upgrade to Babel 7 (#3667) 2018-08-10 14:45:58 +01:00
Clark Du
b4ab2778cb
refactor: separate multiple folders in path.resolve (#3670) 2018-08-09 23:08:42 +01:00
Alexander Lichter
52d9629bac eslint: Prefer const over let (#3650) 2018-08-08 12:54:05 +02:00
Jonas Galvez
3f1d634fb7 Consistent parens in arrow functions (#3630)
* Minor consistency enhancements

* Arrow parenthesis consistency

* Change linting rule

* Fix typo

* Update .eslintrc.js to only require parens for blocks

* Update style according to brace-only suggestion

* Remove --fix from lint

* Tweak no-loading time (failing test)

* Tweak no-loading time (failing test) (2)

* Tweak no-loading time (failing test) (3)

* Tweak no-loading time (failing test) (4)

* Tweak no-loading time (failing test) (5)
2018-08-06 02:12:44 +02:00
Clark Du
7365702bff refactor: use third argument of test for timeout 2018-07-24 17:30:31 +01:00
Clark Du
139ff62773 misc: increase timeout for fixture building 2018-07-24 17:30:31 +01:00
Clark Du
8c85edd08b
test: ignore multiple processes test cases in appveyor 2018-07-20 17:25:11 +01:00
Clark Du
3c54d26c76 test: refactor cli tests (#3357)
* refactor: add untility for waiting until condition completed

* test: cli

* test: separate config of generate and build in cli test

* test: increase timeout of cli test slightly

* refactor: move waitUntil to test utils

* fix: use waitUntil in test utils
2018-06-06 17:01:43 +04:30
Clark Du
0583558d77
refactor: support string param in mock-log 2018-04-18 23:11:06 +08:00
Clark Du
4049c2b19a
fix: mock-log lint 2018-04-13 15:25:34 +08:00
Clark Du
708f602a62
refactor: use spyOn in mockLog 2018-04-13 15:11:53 +08:00
Clark Du
9ddd56c97f
refactor: make mocked log object mutable 2018-04-13 14:59:22 +08:00
Clark Du
c1d14f5f96
misc: remove unsless config 2018-04-09 17:59:41 +08:00
Pooya Parsa
e4ee624011 feat: improve esm handling
disables esm for nuxt modules
2018-04-05 13:08:54 +04:30
Pooya Parsa
5f2cf99eb9 mock consola with jest 2018-03-31 21:07:57 +04:30
Clark Du
7890d9c078
refactor: extract a unified console util 2018-03-30 16:27:18 +08:00
Clark Du
ed321f52c1
refactor: stats none is same as false 2018-03-29 15:11:34 +08:00
Clark Du
ef7a42649d misc: improve coverage and packaging (#3121)
nuxt-start and nuxt/legacy are also coming!
2018-03-28 02:58:17 +04:30
Pooya Parsa
c58a9c79a0 feat(test): support PUPPETEER_EXECUTABLE_PATH 2018-03-20 14:37:05 +03:30
Clark Du
dde616fbdb
fix: avoid override of puppeteer browser 2018-03-19 16:29:44 +08:00
Clark Du
17b01d0aa8 Revert "temporarily comment _getPort for tesing"
This reverts commit ca1242d5ec.
2018-03-19 15:24:09 +08:00
Clark Du
ca1242d5ec
temporarily comment _getPort for tesing 2018-03-19 15:05:02 +08:00
Clark Du
b4727eb4c4
test: refactor generate tests 2018-03-19 12:21:04 +08:00
Pooya Parsa
a962210219 increase jasmine timeouts
Thank you slow CI :)
2018-03-19 04:43:26 +03:30
Pooya Parsa
c4068c3a70 working tests 2018-03-19 03:11:14 +03:30