c03d4931de
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
759 B
759 B
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.