-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a script to test the bundle that will be uploaded to CDN
Add a `test:cdn_bundle` NPM script and run it in CI. This script tests the bundle that the `.github/workflows/cdn.yml` workflow will upload to the CDN, by checking that, when this bundle is imported by a web page, it gives access to a working Spaces client. The approach (using Playwright and a local web server powered by Express) is based heavily on that used by the `test:playwright` NPM script in ably-js at commit 83b4516. I then incorporated Dom’s suggestion of using Playwright’s built-in test-running functionality, taking code from his draft PR #218.
- Loading branch information
1 parent
60a8a0b
commit fa95f9f
Showing
18 changed files
with
1,513 additions
and
4 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
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ node_modules/ | |
coverage | ||
.env | ||
docs/typedoc/generated/ | ||
test-results/ | ||
|
||
# Local Netlify folder | ||
.netlify | ||
|
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,3 @@ | ||
[submodule "test/ably-common"] | ||
path = test/ably-common | ||
url = https://github.com/ably/ably-common.git |
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 @@ | ||
test/ably-common/ |
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
Oops, something went wrong.