-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const chaiExclude = require('chai-exclude'); | ||
const chaiAsPromised = require('chai-as-promised'); | ||
const chai = require('chai'); | ||
chai.use(chaiAsPromised); | ||
chai.use(chaiExclude); | ||
|
||
module.exports = { | ||
allowUncaught: false, | ||
color: true, | ||
checkLeaks: true, | ||
fullTrace: true, | ||
asyncOnly: false, | ||
spec: require('./specs').all, | ||
timeout: 200 * 1000, //API takes a little long to start up | ||
reporter: 'spec', | ||
file: [ 'test/e2e/hooks.js' ], | ||
captureFile: 'test/e2e/results.txt', | ||
exit: true, | ||
recursive: true, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
before(() => { | ||
console.log('before'); | ||
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 10.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 10.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 20.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 16.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 14.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 16.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 12.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 8.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 20.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 8.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 14.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 18.x
Check warning on line 2 in test/e2e/hooks.js GitHub Actions / Build for Node version 18.x
|
||
}); | ||
|
||
after(() => { | ||
console.log('after'); | ||
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 10.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 10.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 20.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 16.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 14.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 16.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 12.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 8.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 20.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 8.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 14.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 18.x
Check warning on line 6 in test/e2e/hooks.js GitHub Actions / Build for Node version 18.x
|
||
}); | ||
|
||
beforeEach(() => { | ||
console.log('beforeEach'); | ||
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 10.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 10.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 20.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 16.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 14.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 16.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 12.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 8.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 20.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 8.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 14.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 18.x
Check warning on line 10 in test/e2e/hooks.js GitHub Actions / Build for Node version 18.x
|
||
}); | ||
|
||
afterEach(() => { | ||
console.log('afterEach'); | ||
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 10.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 10.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 20.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 16.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 14.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 16.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 12.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 8.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 20.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 8.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 14.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 18.x
Check warning on line 14 in test/e2e/hooks.js GitHub Actions / Build for Node version 18.x
|
||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const assert = require('assert'); | ||
|
||
describe('placeholder', () => { | ||
it('checks if the mocha test setup works', () => { | ||
assert.strictEqual(1, 1); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
all: [ | ||
'test/e2e/**/*.spec.js' | ||
] | ||
}; |