From b21bbb469a298815d9940a0d1d253be96b7d819c Mon Sep 17 00:00:00 2001 From: Nick O'Neill Date: Fri, 10 Aug 2018 18:36:50 -0700 Subject: [PATCH] Experimenting with netlify, do not merge (#409) Add Netlify config --- netlify.toml | 7 +++++++ scripts/test.js | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..1278b089 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,7 @@ +[Settings] +ID = "eloquent-swirles-2ba06d" + +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 \ No newline at end of file diff --git a/scripts/test.js b/scripts/test.js index 1c2d79fd..35b05ce3 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -16,6 +16,10 @@ require('../config/env'); const jest = require('jest'); const argv = process.argv.slice(2); +if (process.env.CI) { + argv.push('-w 1'); +} + // Watch unless on CI or in coverage mode if (!process.env.CI && argv.indexOf('--coverage') < 0) { argv.push('--watch');