Commit Graph

17 Commits

Author SHA1 Message Date
Pooya Parsa
c4068c3a70 working tests 2018-03-19 03:11:14 +03:30
Pooya Parsa
ed22e78a75 basic migration to jest 2018-03-18 23:01:32 +03:30
Pooya Parsa
b183ab296f fix cli test 2018-03-13 16:23:09 +03:30
Pooya Parsa
56dbb843ef fix tests 2018-03-13 15:39:41 +03:30
Pooya Parsa
76b5e0454a use webpack's built in minimizer 2018-03-13 15:28:40 +03:30
Pooya Parsa
16821361a0 pass cli tests 2018-03-12 03:07:38 +03:30
Clark Du
7103b34ec8 test: add start timeout warning in cli.test 2018-03-09 10:09:57 +08:00
Clark Du
0aff524d3b test: adjust starting timeout to 20s 2018-03-09 10:09:57 +08:00
Clark Du
b0eada0410
test: cli fatal error 2018-01-28 00:23:05 +08:00
Pooya Parsa
3a36c0f2c5 test: update cli test 2018-01-16 11:16:43 +03:30
Pooya Parsa
758c554ed7 fix eslint 2018-01-11 22:37:05 +03:30
Pooya Parsa
118d3fb8c2 imrpove nuxt-generate error report summary 2018-01-11 21:50:35 +03:30
Pooya Parsa
061059beb4 update generate cli & tests 2018-01-11 20:03:30 +03:30
pimlie
fffe741986 Use console helper with sinon
Add stdout/stderr to console helpers

Remove separate nosubfolders test file in favor of inclusion in basic.generate

Add build.stats to silence webpack output

Add .always to after hooks: (1) fixes issue with basic.dev test that watch.js is empty when one of the test fails and (2) fixes that sometimes when running multiple tests that failed after eachother the port is still used as the server did not automatically get killed

Change all init nuxt before test to serial tests and add tests for DONE and OPEN logs
2017-12-17 20:30:26 +01:00
Pooya Parsa
9b8cbed512 perf: remove rollup build
Using native node 8.x for less transpilations
2017-12-12 13:12:29 +03:30
Pooya Parsa
5a07be6396 perf: use native util.promisify instead of pify
https://nodejs.org/api/util.html#util_util_promisify_original
2017-12-12 11:13:56 +03:30
Pim
65f4a030f4 refactor generator + cli tests (#2205)
* Rename this.generateRoutes to this.staticRoutes

* Refactor generator to separate logic

* Move routeCreated hook to generateRoute

Add routeFailed hook for unhandled exceptions

Keep page errors separately until page hooks have been called

* Move debug and report statements to hooks

* pageErrors can be a const

Push pageErrors to errors

* fix done hook, errors are 2nd param

* Add generator hooks to nuxt-build for spa mode

* Added a cli integration test for bin/nuxt-(build|start|generate)

* Removed unnecessary waitFor

* Use pify instead util.promisify for v6 compatibility

* Fix windows build

You cant execute .js files directly on Windows/Appveyor so call node with nuxt-*.js file as argument

* Fix windows build (2)

Use correct folder separators in text search

* Fix possible timing quirck in children.path.test
2017-11-24 02:01:54 +03:30