Satoshi

Results 28 comments of Satoshi

Hi! I'm making a package name validation library. https://github.com/TomokiMiyauci/is-valid-package-name/tree/beta/deno_land Deno seems to confirm the contents of `badwords.txt` in S3 with the validation of the module name. Is there a way...

Yeah, I checked. > putting it in the repository gives it a lot of visibility, we can link to the file in the README for example. Do you plan to...

@wperron Thank you for answering

I have previously created a module [unitest/expect](https://github.com/TomokiMiyauci/unitest/tree/main/expect). With the significant enhancements to the testing environment since 1.21.0, it would be nice if this module could also be provided as a...

@bartlomieju Since the API consists of pure functions only, except for throwing Error, some APIs were not implemented. - APIs related to snapshots - `expect.assertions` - `expect.hasAssertions` And in the...

@bartlomieju Note that there is no guarantee of equivalence with `jest`. unitest/expect API - [expect.toBe](https://github.com/TomokiMiyauci/unitest/tree/main/matcher/to_be.ts) - [expect.toEqual](https://github.com/TomokiMiyauci/unitest/tree/main/matcher/to_equal.ts) - [expect.toBeFalsy](https://github.com/TomokiMiyauci/unitest/tree/main/matcher/to_be_falsy.ts) - [expect.toBeTruthy](https://github.com/TomokiMiyauci/unitest/tree/main/matcher/to_be_truthy.ts) - [expect.toBeDefined](https://github.com/TomokiMiyauci/unitest/tree/main/matcher/to_be_defined.ts) - [expect.toBeUndefined](https://github.com/TomokiMiyauci/unitest/tree/main/matcher/to_be_undefined.ts) - [expect.toBeNull](https://github.com/TomokiMiyauci/unitest/tree/main/matcher/to_be_null.ts) - [expect.toBeNaN](https://github.com/TomokiMiyauci/unitest/tree/main/matcher/to_be_na_n.ts) -...

@bartlomieju I intend to issue a PR, but before I do, there is something that should be clarified. unitest internal implementation is very different from jest. Therefore, I'm not sure...

@bartlomieju I am not sure if it should be a jest like class base implementation or a unitest like Proxy implementation. jest's `expect` is a mix of matchers (e.g. `toBe`),...

@kt3k The biggest difference is the presence of ambient(interface). jest defines [interface](https://github.com/facebook/jest/blob/main/packages/expect/src/types.ts#L125) for matchers, etc. The matcher interface is almost the same in jest and unitest. For example `toBe`: ```ts...

@kt3k Thanks for the response. I will start working on the pull request. It may possibly be different from the current `unitest` implementation.