To make sure the bootstrap will work after updates tests will be conducted before our CI tool will publish the new version to NPM.
An example output of the test can be found below:
15:53:35 Compiled successfully.
15:53:35
15:53:35 Automatically optimizing pages...
15:53:36
15:53:36 Page Size Files Packages
15:53:36 ┌ /_app 218 kB 0 2
15:53:36 ├ /_document
15:53:36 ├ /_error 7.38 kB 0 2
15:53:36 └ ⚡ /[lang] 317 B 0 2
15:53:36
15:53:36 σ (Server) page will be server rendered (i.e. getInitialProps)
15:53:36 ⚡ (Static File) page was prerendered as static HTML
15:53:36
15:53:37
15:53:37 > @dpdk/bootstrap@1.24.3 test /var/lib/jenkins/workspace/dpdk_npm_next_bootstrap
15:53:37 > NODE_ENV=test mocha -R spec --recursive './{,!(node_modules)/**}/*.test.js'
15:53:37
15:53:38 Bootstrap
15:53:38 ################################# DPDK Preflight ########################################
15:53:38 ## Checksum b1ab4e0b1fcc3ccc743a0e699e843292d4a6d443 ##
15:53:38 ## Verification: SUCCESS ##
15:53:38 ## Support/Bugs: https://dpdk.com/ - support@dpdk.com ##
15:53:38 ################################# DPDK Preflight ########################################
15:53:38 > Bootstrap Version: 1.24.3
15:53:38 ✓ Should be able to construct a new DPDK Next.JS bootstrap without error
15:53:38 ✓ Should be able to init the Next.JS bootstrap without error (207ms)
15:53:38 ✓ Should be able to GET /en (99ms)
15:53:38
15:53:38 GraphQL
15:53:38 ✓ Should be able to GET /api (GraphQL Playground)
15:53:38 ✓ Should be able to POST /api (GraphQL Query)
15:53:38
15:53:38
15:53:38 5 passing (419ms)
Last modified | Friday, April 30, 2021, 12:00:21 PM UTC |
Last author | Colin van Eenige |
Commit ID | 4c7a701 |