Skip to content

test: fix browser check#14

Merged
Uzlopak merged 1 commit intomasterfrom
browser
Nov 27, 2022
Merged

test: fix browser check#14
Uzlopak merged 1 commit intomasterfrom
browser

Conversation

@Eomm
Copy link
Member

@Eomm Eomm commented Nov 25, 2022

follow up #13

@Eomm Eomm requested a review from Uzlopak November 25, 2022 17:55
@Uzlopak
Copy link
Contributor

Uzlopak commented Nov 25, 2022

Maybe we can create something generic for the fastify org workflows based on this?

https://github.com/nodejs/readable-stream/blob/main/.github/workflows/browsers.yml

@Fdawgs Fdawgs changed the title fix(test): browser check test: fix browser check Nov 25, 2022
@Eomm
Copy link
Member Author

Eomm commented Nov 26, 2022

Maybe we can create something generic for the fastify org workflows based on this?

That is huge:

  • they run a build phase for every bundler (browserify, esbuild, rollup, webpack)
  • then the code is injected into an HTML page
  • finally, they collect the TAP output with tape.createHarness() to provide the coverage

I must say that I can't invest time on this task

image

@Eomm
Copy link
Member Author

Eomm commented Nov 27, 2022

This PR solves:

  • coverage issue
  • prevents new Buffer checks

I would add/discuss full browser support in a separate issue - as currently, the README does not mention it

@@ -24,6 +24,7 @@
"devDependencies": {
"standard": "^17.0.0",
"tap": "^16.3.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we savely remove tap?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can. i keept it as test runner: it reads the tap output by tape and checks the coverage. I thought it is a a "standard" across the org and a friendly output

@Uzlopak Uzlopak merged commit d93badc into master Nov 27, 2022
@Uzlopak Uzlopak deleted the browser branch November 27, 2022 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants