denoland / denoland/std

Support assertSnapshotSync

Open
#6,365 0 comments 0 reactions 0 assignees View on GitHub
enhancement suggestion
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

I'm working on RxJS, which also use the TestScheduler provide from RxJS.
But there is a limitation when I use TestScheduler doing the test, which cannot have Promise in the test.
https://rxjs.dev/guide/testing/marble-testing#rxjs-code-that-consumes-promises-cannot-be-directly-tested

**Describe the solution you'd like**

I try to implement by myself, to use Deno.mkdirSync(), Deno.writeTextFileSync(), Deno.readTextFileSync(), and it works in simple case.
But I realize it's hard becuase there are so many situations need to handle, it's not just simply read/write file and compare the content.

If it can support from standard library will be very good.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.