Skip to content
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

feat/break out sentry #40

Merged
merged 27 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f95be18
update tsup
joshbalfour Apr 26, 2024
4f801c5
move sentry to it's own module
joshbalfour Apr 26, 2024
81f0ade
bump versions
joshbalfour Apr 26, 2024
9fbbda0
update .npmignore
joshbalfour Apr 26, 2024
90f9e8b
move tests across
joshbalfour Apr 26, 2024
cd3c2c6
Apply readme changes
joshbalfour Apr 26, 2024
5665315
Apply integration test snapshot changes
joshbalfour Apr 26, 2024
243d7f9
add browser sentry logger
joshbalfour May 1, 2024
0c4f477
Apply readme changes
joshbalfour May 1, 2024
4db3fa3
fix sonar issues
joshbalfour May 1, 2024
407e312
Merge branch 'feat/break-out-sentry' of https://github.com/reapit/ts-…
joshbalfour May 1, 2024
ab85867
Apply readme changes
joshbalfour May 1, 2024
9d0aba1
add tests
joshbalfour May 1, 2024
835783f
Merge branch 'feat/break-out-sentry' of https://github.com/reapit/ts-…
joshbalfour May 1, 2024
019446b
Apply readme changes
joshbalfour May 1, 2024
2081e9f
more tests
joshbalfour May 3, 2024
690e56a
update tests
joshbalfour May 7, 2024
1e5bd93
better tests
joshbalfour May 7, 2024
17dbe19
Apply readme changes
joshbalfour May 7, 2024
7829482
more tests
joshbalfour May 7, 2024
1a98e5d
cookie test
joshbalfour May 7, 2024
2f1151e
bump
joshbalfour May 7, 2024
5d9c161
Apply readme changes
joshbalfour May 7, 2024
d33933f
Merge remote-tracking branch 'origin/main' into feat/break-out-sentry
joshbalfour May 8, 2024
8f8e06d
enable corepack for integ tests
joshbalfour May 8, 2024
19f3026
fix line break
joshbalfour May 8, 2024
d29c493
Apply readme changes
joshbalfour May 8, 2024
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
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Enable Corepack
run: corepack enable

- name: Set Node
uses: actions/setup-node@v3
with:
Expand Down
22 changes: 20 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module.exports = {
// silent: true, // uncomment this to get console.log
preset: 'ts-jest',
projects: [{
displayName: 'unit tests',
displayName: 'node unit tests',
testMatch: [
'<rootDir>/packages/**/*.test.ts',
],
testPathIgnorePatterns: ["integ.*"],
testPathIgnorePatterns: ["integ.*", 'browser.*'],
testEnvironment: 'node',
transform: {
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
Expand All @@ -21,6 +21,24 @@ module.exports = {
},
],
},
}, {
displayName: 'browser unit tests',
testMatch: [
'<rootDir>/packages/**/*.browser.test.ts',
],
testEnvironment: 'jsdom',
transform: {
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: {
sourceMap: true,
},
},
],
},
}, {
displayName: 'integration tests',
testMatch: [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"aws-sdk-client-mock": "^3.0.1",
"aws-sdk-client-mock-jest": "^3.0.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/constructs/edge-api-swagger/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ api.addEndpoint(
title: '', // defaults to Edge API
version: '', // defaults to 1.0.0
},
}),
}).endpoint,
)

```
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
}
}
},
"cfa281d1e696e61ca92349c05c0ed1fc64177a582ab9a8947c1f43602bf484d7": {
"8ed1ecf154a19dce18842d6cea41a06a506bf2ac868c993cde896d17e5f6954d": {
"source": {
"path": "asset.cfa281d1e696e61ca92349c05c0ed1fc64177a582ab9a8947c1f43602bf484d7",
"path": "asset.8ed1ecf154a19dce18842d6cea41a06a506bf2ac868c993cde896d17e5f6954d",
"packaging": "zip"
},
"destinations": {
"028446965111-eu-central-1": {
"bucketName": "cdk-hnb659fds-assets-028446965111-eu-central-1",
"objectKey": "cfa281d1e696e61ca92349c05c0ed1fc64177a582ab9a8947c1f43602bf484d7.zip",
"objectKey": "8ed1ecf154a19dce18842d6cea41a06a506bf2ac868c993cde896d17e5f6954d.zip",
"region": "eu-central-1",
"assumeRoleArn": "arn:${AWS::Partition}:iam::028446965111:role/cdk-hnb659fds-file-publishing-role-028446965111-eu-central-1"
}
Expand Down Expand Up @@ -57,15 +57,15 @@
}
}
},
"59768c911885941ee4e31a86508cf6fc2488b90985436deec2465ebf983824e6": {
"73cc2d64ae12e8dde46de05b377f71c672cf1f019dae7a1f6030f8a315fc3fdc": {
"source": {
"path": "email-receiver-test-stack.template.json",
"packaging": "file"
},
"destinations": {
"028446965111-eu-central-1": {
"bucketName": "cdk-hnb659fds-assets-028446965111-eu-central-1",
"objectKey": "59768c911885941ee4e31a86508cf6fc2488b90985436deec2465ebf983824e6.json",
"objectKey": "73cc2d64ae12e8dde46de05b377f71c672cf1f019dae7a1f6030f8a315fc3fdc.json",
"region": "eu-central-1",
"assumeRoleArn": "arn:${AWS::Partition}:iam::028446965111:role/cdk-hnb659fds-file-publishing-role-028446965111-eu-central-1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
"Properties": {
"Code": {
"S3Bucket": "cdk-hnb659fds-assets-028446965111-eu-central-1",
"S3Key": "cfa281d1e696e61ca92349c05c0ed1fc64177a582ab9a8947c1f43602bf484d7.zip"
"S3Key": "8ed1ecf154a19dce18842d6cea41a06a506bf2ac868c993cde896d17e5f6954d.zip"
},
"Handler": "verification-waiter.onEvent",
"Role": {
Expand All @@ -256,7 +256,7 @@
],
"Metadata": {
"aws:cdk:path": "email-receiver-test-stack/email-receiver/waiter/lambda/Resource",
"aws:asset:path": "asset.cfa281d1e696e61ca92349c05c0ed1fc64177a582ab9a8947c1f43602bf484d7",
"aws:asset:path": "asset.8ed1ecf154a19dce18842d6cea41a06a506bf2ac868c993cde896d17e5f6954d",
"aws:asset:is-bundled": false,
"aws:asset:property": "Code"
}
Expand Down Expand Up @@ -484,7 +484,7 @@
"Properties": {
"Code": {
"S3Bucket": "cdk-hnb659fds-assets-028446965111-eu-central-1",
"S3Key": "cfa281d1e696e61ca92349c05c0ed1fc64177a582ab9a8947c1f43602bf484d7.zip"
"S3Key": "8ed1ecf154a19dce18842d6cea41a06a506bf2ac868c993cde896d17e5f6954d.zip"
},
"Environment": {
"Variables": {
Expand All @@ -508,7 +508,7 @@
],
"Metadata": {
"aws:cdk:path": "email-receiver-test-stack/email-receiver/receiver-lambda/Resource",
"aws:asset:path": "asset.cfa281d1e696e61ca92349c05c0ed1fc64177a582ab9a8947c1f43602bf484d7",
"aws:asset:path": "asset.8ed1ecf154a19dce18842d6cea41a06a506bf2ac868c993cde896d17e5f6954d",
"aws:asset:is-bundled": false,
"aws:asset:property": "Code"
}
Expand Down Expand Up @@ -919,7 +919,7 @@
"CDKMetadata": {
"Type": "AWS::CDK::Metadata",
"Properties": {
"Analytics": "v2:deflate64:H4sIAAAAAAAA/11Q0U7DMAz8lr2nhjEhsUc2gcQDoup4n9LEm7w2SRUng6nqv5OmAwpSJJ/vzvHJd7Bew3IhP7hQuilaqqHfBakaUSG76BWKpO17fbHSOJ3Ud1m3KLYHm8Eg2HIiXUcqkxnsYs3KUxfI2ZGd92kC08STkdS+aLSBwmX0/CUqVJj8VZx2zdpBeBcD3q+gnwTn9Q6DeP2c8CBaaWotoX+OVn0nmOMSvSHmnIWkgb5y1y1jLV1LKieaUMq72ktmDAyPY0k9bKJqMGwkpzjbyMGZn3PlUFec/emcR7JHobJv768iQ+ndmTT6fz/80gf7FkMXwyCs0wgnvjkvHyC928WJiQof07EMQjXVL7SKI4PMAQAA"
"Analytics": "v2:deflate64:H4sIAAAAAAAA/11QQW7CMBB8C3ezLUGtyrGgVuqhKkq4I8de0EJsR14biiz/vUoCbehpZmfG3tEWkBYLmE3kmadKH6cN1ZCqINVRrHa2RHbRK8xi8QzFfejmCXnmbdIXK43TNaSNrBvsHvckC7YMaeNaUr3YkyrWrDy1gZzt1PGcBSNDejOSmg+NNlC4dJl7oUSF1IYyDrtGYxbexYBPc0iD4byuMIjP74Fn0UhTawnpPVp1azDma/SGmPsuJA2k0l23dLh2Dam+0cCy4PlWMmNgeO1A8ByWUR0xLCVjFqvIwZnfc43OKvp8FeSe7F6oPrf1V5Nh7d2JNPp/P/zJO/sVQxtDzsI6jXDgh9PsBYpHKCYHJpr6aAMZhHLAH6J9IlntAQAA"
},
"Metadata": {
"aws:cdk:path": "email-receiver-test-stack/CDKMetadata/Default"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"validateOnSynth": false,
"assumeRoleArn": "arn:${AWS::Partition}:iam::028446965111:role/cdk-hnb659fds-deploy-role-028446965111-eu-central-1",
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::028446965111:role/cdk-hnb659fds-cfn-exec-role-028446965111-eu-central-1",
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-028446965111-eu-central-1/59768c911885941ee4e31a86508cf6fc2488b90985436deec2465ebf983824e6.json",
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-028446965111-eu-central-1/73cc2d64ae12e8dde46de05b377f71c672cf1f019dae7a1f6030f8a315fc3fdc.json",
"requiresBootstrapStackVersion": 6,
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
"additionalDependencies": [
Expand Down
Loading
Loading