Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ce13368
Merge pull request #52 from contentstack/main
harshithad0703 Sep 13, 2024
9ecb7d4
updated api test cases
harshithad0703 Sep 18, 2024
4aa32e2
Merge pull request #54 from contentstack/test/dx-693-sanity-test-cases
harshithad0703 Sep 18, 2024
0b6c073
updated test cases to run sanity
harshithad0703 Oct 23, 2024
e7825e2
added slack channel integration for sanity reports
harshithad0703 Oct 23, 2024
8ab67ea
update API test cases to check for defined titles instead of specific…
harshithad0703 Apr 9, 2025
18e1406
add Slack integration for sending sanity report notifications
harshithad0703 Apr 9, 2025
f9513b0
refactor: simplify sanity report test command in package.json
harshithad0703 Apr 9, 2025
22273d9
chore: testing slack notification for sanity report
AniketDev7 Apr 9, 2025
52977a5
chore: message updated
AniketDev7 Apr 9, 2025
ad83ad9
chore: updated the report url
AniketDev7 Apr 9, 2025
889e201
updated slack notif title for TS SDK
AniketDev7 Apr 10, 2025
5af0384
chore: updated slack notif
AniketDev7 Apr 10, 2025
8b82e9c
updated api test cases
harshithad0703 Sep 18, 2024
37e6719
updated test cases to run sanity
harshithad0703 Oct 23, 2024
4410064
added slack channel integration for sanity reports
harshithad0703 Oct 23, 2024
d49939d
update sanity test cases
harshithad0703 Apr 23, 2025
8adf784
update sanity test cases
harshithad0703 Apr 23, 2025
e76d7c4
chore: testing slack notification for sanity report
AniketDev7 Apr 9, 2025
0dd3619
add Slack integration for sending sanity report notifications
harshithad0703 Apr 9, 2025
8276729
chore: message updated
AniketDev7 Apr 9, 2025
afbc10e
chore: updated the report url
AniketDev7 Apr 9, 2025
5964707
updated slack notif title for TS SDK
AniketDev7 Apr 10, 2025
2c737ca
chore: updated slack notif
AniketDev7 Apr 10, 2025
d7c2094
Merge branch 'development' into fix/sanity-test-cases
harshithad0703 Apr 23, 2025
08c3a63
Merge branch 'fix/sanity-test-cases' into test/sanity-update
harshithad0703 Apr 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 33 additions & 28 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,49 +1,54 @@
/* eslint-disable */
export default {
testEnvironment: 'jsdom',
displayName: 'contentstack-delivery',
preset: './jest.preset.js',
displayName: "contentstack-delivery",
preset: "./jest.preset.js",
transform: {
'^.+\\.[tj]s$': ['ts-jest', {
tsconfig: '<rootDir>/tsconfig.spec.json',
}],
"^.+\\.[tj]s$": [
"ts-jest",
{
tsconfig: "<rootDir>/tsconfig.spec.json",
},
],
},
moduleFileExtensions: ['ts', 'js', 'html'],
moduleFileExtensions: ["ts", "js", "html"],
collectCoverage: true,
coverageDirectory: './reports/contentstack-delivery/coverage/',
collectCoverageFrom: [
"src/**",
"!src/index.ts"
],
coverageDirectory: "./reports/contentstack-delivery/coverage/",
collectCoverageFrom: ["src/**", "!src/index.ts"],
coverageThreshold: {
// global: {
// branches: 95,
// functions: 95,
// lines: 95,
// statements: 95
// }
},
reporters: [
'default',
"default",
[
"jest-html-reporter",
{
pageTitle: "API Test Report",
outputPath: "reports/sanity.html",
includeFailureMsg: true,
includeConsoleLog: true,
},
],
[
'jest-html-reporters',
"jest-html-reporters",
{
publicPath: './reports/contentstack-delivery/html',
filename: 'index.html',
publicPath: "./reports/contentstack-delivery/html",
filename: "index.html",
expand: true,
},
],
[
'jest-junit',
"jest-junit",
{
outputDirectory: 'reports/contentstack-delivery/junit',
outputName: 'jest-junit.xml',
ancestorSeparator: '',
uniqueOutputName: 'false',
suiteNameTemplate: '{filepath}',
classNameTemplate: '{classname}',
titleTemplate: '{title}',
outputDirectory: "reports/contentstack-delivery/junit",
outputName: "jest-junit.xml",
ancestorSeparator: "",
uniqueOutputName: "false",
suiteNameTemplate: "{filepath}",
classNameTemplate: "{classname}",
titleTemplate: "{title}",
},
],
],
};
};
Loading
Loading