-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare using setup.js as the main entrypoint for tests (#426)
* Prepare using setup.js as the main entrypoint for tests
- Loading branch information
1 parent
0c64356
commit 3b9b997
Showing
13 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"recursive": true, | ||
"retries": 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
test/streaming_profiles_spec.js → test/integration/streaming_profiles_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
global.expect = require('expect.js'); | ||
require('./testUtils/testBootstrap'); | ||
|
||
|
||
require('dotenv').load({ | ||
silent: true | ||
}); | ||
|
||
if (!process.env.CLOUDINARY_URL) { | ||
throw 'Could not start tests - Cloudianry URL is undefined' | ||
} | ||
|
||
global.expect = require('expect.js'); | ||
require('./testUtils/testBootstrap'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
#!/bin/bash | ||
mocha --recursive --require 'babel-register' --require 'babel-polyfill' test/ | ||
|
||
# --File ensures that setup.js runs first | ||
# This file should be in the config under a 'require' key | ||
# However Mocha 6 does not expose before, beforeEach after etc. at that time | ||
# When Removing support of Node 6 and 8 and using Mocha 8, we should move this to the mocharc.json file | ||
mocha --require './test/setup.js' --require 'babel-register' --require 'babel-polyfill' "./test/**/*spec.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# --File ensures that setup.js runs first | ||
# This file should be in the config under a 'require' key | ||
# However Mocha 6 does not expose before, beforeEach after etc. at that time | ||
# When Removing support of Node 6 and 8 and using Mocha 8, we should move this to the mocharc.json file | ||
mocha --file "./test/setup.js" "./test/unit/**/*spec.js" |