Skip to content

Commit

Permalink
wpt: update tests (#1984)
Browse files Browse the repository at this point in the history
* wpt: update tests

* docs: add link to steps for updating wpts

* docs: add link in guides

* run CI?

* fix: get rid of name hack

* docs: update contributing docs
  • Loading branch information
KhafraDev committed Mar 4, 2023
1 parent 71c3605 commit 3606c35
Show file tree
Hide file tree
Showing 44 changed files with 2,494 additions and 4,980 deletions.
21 changes: 21 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* [Lint](#lint)
* [Test](#test)
* [Coverage](#coverage)
* [Update `WPTs`](#update-wpts)
* [Developer's Certificate of Origin 1.1](#developers-certificate-of-origin)
* [Moderation Policy](#moderation-policy)

Expand Down Expand Up @@ -84,6 +85,24 @@ npm run build:wasm

Here are the steps to update them.

<details>
<summary>Skip the tutorial</summary>

```bash
git clone --depth 1 --single-branch --branch epochs/daily --filter=blob:none --sparse https://github.com/web-platform-tests/wpt.git test/wpt/tests
cd test/wpt/tests
git sparse-checkout add /fetch
git sparse-checkout add /FileAPI
git sparse-checkout add /xhr
git sparse-checkout add /websockets
git sparse-checkout add /resources
git sparse-checkout add /common
git sparse-checkout add /mimesniff
git sparse-checkout add /interfaces
git sparse-checkout add /resources
```
</details>

#### Sparse-clone the [wpt](https://github.com/web-platform-tests/wpt) repo

```bash
Expand All @@ -104,6 +123,8 @@ git sparse-checkout add /xhr
git sparse-checkout add /websockets
git sparse-checkout add /resources
git sparse-checkout add /common

# etc
```

#### Run the tests
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@
"ignore": [
"lib/llhttp/constants.js",
"lib/llhttp/utils.js",
"test/wpt/tests",
"test/wpt/runner/resources"
"test/wpt/tests"
]
},
"tsd": {
Expand Down

0 comments on commit 3606c35

Please sign in to comment.