mjs-test-launcher

1.0.8 • Public • Published

Test launcher for mjs-mocha

Configuration

  • Create file, for example launcher.mjs

  • Add script to your package.json:

{
"test": "node --experimental-modules ./launcher.mjs"
}
  • All variables in config are defined by default as in example below, override them if you want.

  • launcher.mjs:

import launch from 'mjs-test-launcher';
 
launch({
  env: {
    NODE_ENV: 'test',
    MYSQL_USER: 'root',
    MYSQL_PASSWORD: 'root',
    MYSQL_DATABASE: 'test',
    MYSQL_HOST: 'localhost'
  },
  db: false,
  dir: './src/tests',
  migrations_dir: './src/db'
});

Readme

Keywords

none

Package Sidebar

Install

npm i mjs-test-launcher

Weekly Downloads

0

Version

1.0.8

License

ISC

Unpacked Size

46.2 kB

Total Files

19

Last publish

Collaborators

  • kaprisa57