Repository navigation
test: colocate tests as src/**/*.spec.ts - #96
Merged
Merged
Conversation
donskov
force-pushed
the
donskov/webcrypto-2-style
branch
from
October 27, 2026 10:01
29af998 to
27e85fa
Compare
Split test/crypto.ts into specs next to the mechanisms they cover (ec, hkdf, hmac, ed, ed25519, sha, shake, rsa) plus src/crypto.spec.ts for getRandomValues. The shared @peculiar/webcrypto-test suite runs from src/webcrypto-test.spec.ts. Copy vitest.config.ts from pvtsutils (src/**/*.spec.ts, no globals): specs import describe/it from vitest and pass them to WebcryptoTest. Drop the Node < 14 skips and rename the second "shake128" block, which tests shake256. Same 232 tests as before.
donskov
force-pushed
the
donskov/webcrypto-3-test
branch
from
October 27, 2026 10:03
107f5cc to
4f8379b
Compare
This file contains hidden or 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
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.
Stacked on #95 (part 3 of 7 for @peculiar/webcrypto 2.0.0; merge in order).
Splits
test/crypto.tsinto specs next to the mechanisms (src/mechs/{ec,hkdf,hmac,ed,ed25519,sha,shake,rsa}/*.spec.ts),src/crypto.spec.ts, andsrc/webcrypto-test.spec.tsfor the shared@peculiar/webcrypto-testsuite.vitest.config.tsfrom pvtsutils (no globals;describe/itare passed toWebcryptoTest.check). Same 232 tests.@peculiar/webcrypto-test2.0.0 depends only onpvtsutilsandtslib, so it does not pull a second webcrypto-core or json-schema.