1.0.8 • Published 6 years ago

mjs-test-launcher v1.0.8

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

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'
});
1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago