-
Notifications
You must be signed in to change notification settings - Fork 56
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
[SDK-3920] Add a basic test of NPM package #1476
Merged
Merged
Conversation
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
github-actions
bot
temporarily deployed
to
staging/pull/1476/features
October 30, 2023 20:10
Inactive
lawrence-forooghian
force-pushed
the
1474-package-test
branch
from
October 30, 2023 20:42
3bb9c0f
to
ca02abe
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1476/features
October 30, 2023 20:43
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/typedoc
October 30, 2023 20:43
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/bundle-report
October 30, 2023 20:44
Inactive
lawrence-forooghian
force-pushed
the
1474-package-test
branch
from
October 30, 2023 20:49
ca02abe
to
761fb79
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1476/features
October 30, 2023 20:50
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/bundle-report
October 30, 2023 20:50
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/typedoc
October 30, 2023 20:51
Inactive
lawrence-forooghian
force-pushed
the
1474-package-test
branch
from
October 30, 2023 20:53
761fb79
to
0962572
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1476/features
October 30, 2023 20:53
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/typedoc
October 30, 2023 20:54
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/bundle-report
October 30, 2023 20:54
Inactive
lawrence-forooghian
force-pushed
the
1474-package-test
branch
from
October 30, 2023 20:55
0962572
to
9670996
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1476/features
October 30, 2023 20:55
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/bundle-report
October 30, 2023 20:56
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/typedoc
October 30, 2023 20:56
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/features
October 31, 2023 14:47
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/bundle-report
October 31, 2023 14:48
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/typedoc
October 31, 2023 14:48
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/features
October 31, 2023 15:00
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/bundle-report
October 31, 2023 15:01
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/typedoc
October 31, 2023 15:01
Inactive
lawrence-forooghian
force-pushed
the
1474-package-test
branch
2 times, most recently
from
October 31, 2023 15:45
721c203
to
ed0aea1
Compare
lawrence-forooghian
changed the base branch from
integration/v2
to
1397-tree-shakable-MessageInteractions
October 31, 2023 15:45
github-actions
bot
temporarily deployed
to
staging/pull/1476/features
October 31, 2023 15:46
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/bundle-report
October 31, 2023 15:46
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/typedoc
October 31, 2023 15:46
Inactive
lawrence-forooghian
force-pushed
the
1474-package-test
branch
from
November 1, 2023 13:19
ed0aea1
to
58905ff
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1476/typedoc
November 1, 2023 13:27
Inactive
lawrence-forooghian
force-pushed
the
1397-tree-shakable-MessageInteractions
branch
from
November 8, 2023 18:01
7c379cf
to
53cafd4
Compare
lawrence-forooghian
force-pushed
the
1474-package-test
branch
from
November 8, 2023 18:15
9f3dabb
to
0cca628
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1476/features
November 8, 2023 18:15
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/typedoc
November 8, 2023 18:16
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/bundle-report
November 8, 2023 18:17
Inactive
lawrence-forooghian
force-pushed
the
1397-tree-shakable-MessageInteractions
branch
from
November 8, 2023 18:21
53cafd4
to
5c54465
Compare
lawrence-forooghian
force-pushed
the
1474-package-test
branch
from
November 8, 2023 18:22
0cca628
to
d6902d0
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1476/features
November 8, 2023 18:22
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/typedoc
November 8, 2023 18:23
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1476/bundle-report
November 8, 2023 18:23
Inactive
owenpearson
requested changes
Nov 14, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a cool idea, I'm interested to see how useful this will end up being for catching errors/mistakes 👍
lawrence-forooghian
force-pushed
the
1397-tree-shakable-MessageInteractions
branch
from
November 14, 2023 18:53
5c54465
to
6a96472
Compare
When using this function to run `tsc`, noticed that it wasn’t outputting any useful information about why that command failed, because all of the error information was going to stdout.
This adds a package script `test:package`, which performs some basic testing to confirm that a browser-based TypeScript app is able to import the NPM package and use Ably functionality. This hopefully gives us further confidence that we’ve correctly configured the package’s exports and typings. Next, we’ll build on top of this to add similar testing for the tree-shakable version of the library, once we’ve added typings for it in #1442. Some of the approach here is copied from that used for testing the CDN bundle in the Spaces SDK (see commit fa95f9f there). Resolves #1474.
lawrence-forooghian
force-pushed
the
1474-package-test
branch
from
November 14, 2023 19:01
d6902d0
to
9976a84
Compare
owenpearson
approved these changes
Nov 20, 2023
Base automatically changed from
1397-tree-shakable-MessageInteractions
to
1395-http-tree-shaking
November 21, 2023 00:12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: This PR is based on top of #1473; please review that one first.
This adds a package script
test:package
, which performs some basic testing to confirm that a browser-based TypeScript app is able to import the NPM package and use Ably functionality.This hopefully gives us further confidence that we’ve correctly configured the package’s exports and typings. Next, we’ll build on top of this to add similar testing for the tree-shakable version of the library, once we’ve added typings for it in #1442.
Some of the approach here is copied from that used for testing the CDN bundle in the Spaces SDK.
Resolves #1474.