a3c47721a1
This uses the "Expand directories" feature introduces in Prettier 2.0 to automatically format all supported file types. Also, I fixed some badly formatted files. |
||
---|---|---|
.. | ||
pages | ||
test | ||
.babelrc | ||
.gitignore | ||
.mocharc.yml | ||
mocha.setup.js | ||
package.json | ||
README.md |
Example app with Mocha tests
This example features an app with Mocha tests.
How to use
Execute create-next-app
with npm or Yarn to bootstrap the example:
npx create-next-app --example with-mocha with-mocha-app
# or
yarn create next-app --example with-mocha with-mocha-app
Run Mocha tests
npm run test
# or
yarn test
A very important part of this example is the
.babelrc
file which configures thetest
environment to usebabel-preset-env
and configures it to transpile modules tocommonjs
). Learn more.