Skip to content

Commit

Permalink
Update e2e testing location
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed May 13, 2019
1 parent e4ab3d3 commit 0d6863e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.e2e.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
name: 'setup',
displayName: 'Setup',
testMatch: ['**/test/?(*.)+(spec|test).e2e.js'],
testMatch: ['**/?(*.)+(spec|test).e2e.js'],
testEnvironment: 'node',
coveragePathIgnorePatterns: [
'<rootDir>/dist/',
Expand Down
9 changes: 9 additions & 0 deletions packages/strapi/lib/core/__tests__/load-config.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const loadConfig = require('../load-config');
const fs = require('fs-extra');

describe('Load config', () => {
test('Throw on non existant config folder', () => {
fs.existsSync = jest.fn(() => false);
expect(loadConfig({ dir: '/' })).rejects.toThrow();
});
});

0 comments on commit 0d6863e

Please sign in to comment.