Seamless REST/GraphQL API mocking library for browser and Node.js.
MIT License
Bot releases are hidden (Show)
max-age=0
from cookie store (#2275) (c307ab27643fc80631d3f0a28e72f7339a54af70) @kettanaitoPublished by kettanaito about 1 month ago
Published by kettanaito about 2 months ago
Published by kettanaito about 2 months ago
Published by kettanaito about 2 months ago
init
command (#2260) (ba285b887cedfa22f32ae1e8d6569e57174cb561) @ivanfernandez2646 @kettanaitographql
import as require in cjs (#2258) (b97760270b28bd633b56332d87a9d834f653cad2) @kettanaitoPublished by kettanaito about 2 months ago
graphql
lazily (#2250) (1799e0638f0f860c19ba46db7c4287012f2cb716) @kettanaitographql
to "peerDependencies" (#2249) (8a9568ad4593b662a8c320bb1a02b380791a1696) @THETCRPublished by kettanaito about 2 months ago
HttpResponse.html()
static method (#2140, docs) (8c5580a0e2e6e52785b0132128c36d679ddbe5d5) @scruffymongrel @kettanaitoonUnhandledRequest
message (#2227) (a2153c93edd752d7c5686573f684721b19f0a115) @bitttttten @kettanaitoPublished by kettanaito 3 months ago
Published by kettanaito 3 months ago
console.log
(#2217) (00fdbb265dbb5cf0f9f89bd91b546966463535a4) @Lalem001Published by kettanaito 3 months ago
tough-cookie
(#2206) (c30613c2ba1df0c3f2575051ddb3eb42f1744f69) @kettanaitoPublished by kettanaito 3 months ago
Published by kettanaito 5 months ago
Published by kettanaito 6 months ago
[!WARNING]
This release changes how MSW treats unhandled exceptions in response resolvers. Previously, they were treated as request errors. Starting with this release, unhandled resolver exceptions will be coerced to500 Unhandled Exception
mocked error responses produced by the library. Please note that you must not intentionally throw errors in your resolvers. Please useResponse.error()
to mock request/network errors. Unhandled exceptions are considered unintended and will be treated as if they happen on the actual server.
node
export when importing msw/node
(#2134, transitively through @mswjs/interceptors).unhandledException
event (#2135, docs).server.events.on('unhandledException', ({ request, error }) => {
console.log('%s %s errored! See details below.', request.method, request.url)
console.error(error)
})
Published by kettanaito 6 months ago
node
export condition higher priority (#2134) (f948d13d2df85efa8d276396e1e60da235523a0e) @phryneasPublished by kettanaito 7 months ago
createRequestId()
instead of crypto.randomUUID()
(#2113) (8f2be77627b94318e6c2e6d6eee38fc49558c6d9) @kettanaitoPublished by kettanaito 7 months ago
Published by kettanaito 7 months ago
Published by kettanaito 7 months ago
Published by kettanaito 7 months ago
server.boundary()
(#2101) (1370736580b5c2a37127359b79433ca4e9b20c79) @Andarist @kettanaitoPublished by kettanaito 7 months ago