forked from contentful/field-editors
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: store test results (contentful#1369)
* build: store test results * build: use junit reporting * build: add result hash to filename * build: testing with combined junit report * build: testing with combined junit report * build: remove mochawesome, extract reporting to ci config * build: use chrome for ct * build: fix ct command * build: fix reporter options * build: fix ct command * build: add missing \, add jest reporting * build: add extensible base jest config, jest reporting * chore: add jest
- Loading branch information
1 parent
1e4a7d9
commit 43813b1
Showing
49 changed files
with
1,433 additions
and
323 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
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,25 @@ | ||
/* eslint-disable */ | ||
|
||
function getConfig(packageName) { | ||
return { | ||
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'], | ||
reporters: [ | ||
'default', | ||
[ | ||
'jest-junit', | ||
{ | ||
outputDirectory: '../../reports', | ||
outputName: `${packageName}-results.xml`, | ||
addFileAttribute: true, | ||
}, | ||
], | ||
], | ||
globals: { | ||
'ts-jest': { | ||
diagnostics: false, | ||
}, | ||
}, | ||
}; | ||
} | ||
|
||
module.exports = getConfig; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* eslint-disable */ | ||
|
||
const baseConfig = require('../../baseJestConfig'); | ||
|
||
const package = require('./package.json'); | ||
const packageName = package.name.split('@contentful/')[1]; | ||
|
||
module.exports = { | ||
...baseConfig(packageName), | ||
}; |
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,10 @@ | ||
/* eslint-disable */ | ||
|
||
const baseConfig = require('../../baseJestConfig'); | ||
|
||
const package = require('./package.json'); | ||
const packageName = package.name.split('@contentful/')[1]; | ||
|
||
module.exports = { | ||
...baseConfig(packageName), | ||
}; |
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,10 @@ | ||
/* eslint-disable */ | ||
|
||
const baseConfig = require('../../baseJestConfig'); | ||
|
||
const package = require('./package.json'); | ||
const packageName = package.name.split('@contentful/')[1]; | ||
|
||
module.exports = { | ||
...baseConfig(packageName), | ||
}; |
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,10 @@ | ||
/* eslint-disable */ | ||
|
||
const baseConfig = require('../../baseJestConfig'); | ||
|
||
const package = require('./package.json'); | ||
const packageName = package.name.split('@contentful/')[1]; | ||
|
||
module.exports = { | ||
...baseConfig(packageName), | ||
}; |
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,10 @@ | ||
/* eslint-disable */ | ||
|
||
const baseConfig = require('../../baseJestConfig'); | ||
|
||
const package = require('./package.json'); | ||
const packageName = package.name.split('@contentful/')[1]; | ||
|
||
module.exports = { | ||
...baseConfig(packageName), | ||
}; |
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,13 @@ | ||
/* eslint-disable */ | ||
|
||
const baseConfig = require('../../baseJestConfig'); | ||
|
||
const package = require('./package.json'); | ||
const packageName = package.name.split('@contentful/')[1]; | ||
|
||
module.exports = { | ||
...baseConfig(packageName), | ||
moduleNameMapper: { | ||
'^.+\\.css$': '<rootDir>/src/__mocks__/styles.ts', | ||
}, | ||
}; |
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,10 @@ | ||
/* eslint-disable */ | ||
|
||
const baseConfig = require('../../baseJestConfig'); | ||
|
||
const package = require('./package.json'); | ||
const packageName = package.name.split('@contentful/')[1]; | ||
|
||
module.exports = { | ||
...baseConfig(packageName), | ||
}; |
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,10 @@ | ||
/* eslint-disable */ | ||
|
||
const baseConfig = require('../../baseJestConfig'); | ||
|
||
const package = require('./package.json'); | ||
const packageName = package.name.split('@contentful/')[1]; | ||
|
||
module.exports = { | ||
...baseConfig(packageName), | ||
}; |
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,10 @@ | ||
/* eslint-disable */ | ||
|
||
const baseConfig = require('../../baseJestConfig'); | ||
|
||
const package = require('./package.json'); | ||
const packageName = package.name.split('@contentful/')[1]; | ||
|
||
module.exports = { | ||
...baseConfig(packageName), | ||
}; |
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,10 @@ | ||
/* eslint-disable */ | ||
|
||
const baseConfig = require('../../baseJestConfig'); | ||
|
||
const package = require('./package.json'); | ||
const packageName = package.name.split('@contentful/')[1]; | ||
|
||
module.exports = { | ||
...baseConfig(packageName), | ||
}; |
Oops, something went wrong.