Skip to content

sanity-update #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
20dde54
Test Commit 1
cs-raj Apr 17, 2025
bf69d8d
Script Update
cs-raj Apr 17, 2025
b6045d8
Test Commit
cs-raj Apr 17, 2025
de39ff3
Script updated
cs-raj Apr 17, 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
2767a78
Merge pull request #174 from contentstack/staging
harshithad0703 Apr 23, 2025
d7c2094
Merge branch 'development' into fix/sanity-test-cases
harshithad0703 Apr 23, 2025
024e368
fix: simplify sanity report test script
harshithad0703 Apr 23, 2025
67bf8f1
fix: standardize encoding in file read operations and update test ass…
harshithad0703 Apr 23, 2025
da958e3
Merge pull request #175 from contentstack/fix/sanity-test-cases
harshithad0703 Apr 23, 2025
d803048
Merge branch 'development' into fix/Snyk
harshithad0703 Apr 23, 2025
6e40987
Merge pull request #166 from contentstack/fix/Snyk
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
57 changes: 31 additions & 26 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',
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