Files
bun.sh/src
Dylan Conway 4792abdb7f Implement toMatchSnapshot() (#2294)
* buggy snapshot

* error output for failed snapshot

* missing first

* hints

* open dir once, better cleanup

* update flag

* truncate on update

* object and class snapshot formatting

* array formatting

* no function name, single item is empty array

* string objects, maps, sets, promise

* avoid using invalid memory

* handle number objects

* handle extending `Number`

* boolean objects

* snapshot tests and test updates

* snapshot format for buffers

* safer snapshot parsing

* property matchers setup

* strings and tests

* generate classes with empty prototype

* optional `propertyMatchers` parameter

* new test folder structure

* strings.eqlLong

* globalObject.throwPretty() and expect.any tests

* add updateSnapshot flag to help

* move snapshot format out of `printErrorlikeObject`

* empty object snapshot format

* separate typed array, remove trailing comma

* use `isCell`, object trailing commas

* handle unicode

* todo for primitive constructors

* switch to `JSC.Node.Syscall.open` and `JSC.Maybe`

* use js parser for snapshot files

* deinit ast, log parse error

* copy/paste most of `exports.ZigConsoleClient`

* remove snapshot option

* remove ordered properties option

* remove snapshot format option from `exports.zig`

* remove extra newlines

* change mode

* update test runner output

* escape backticks faster

* `bunx jest` in temp dir

* remove buffered writer

* add `toMatchSnapshot` to types

* cleanup, switch to `pread`

* cli `--update` flag

* `--update-snapshots`

* remove string object format
2023-03-14 16:50:59 -07:00
..
2022-12-28 00:51:22 -08:00
2023-02-23 23:57:19 -08:00
2023-03-02 19:02:10 -08:00
2023-03-14 16:50:59 -07:00
2023-02-23 23:57:19 -08:00
2023-02-23 23:57:19 -08:00
2023-02-23 23:57:19 -08:00
2023-03-02 19:02:10 -08:00
2023-02-23 23:57:19 -08:00
2023-03-02 19:02:10 -08:00
2023-01-13 11:38:16 -08:00
2023-02-23 23:57:19 -08:00
2023-02-25 18:23:01 -08:00
2023-02-24 00:20:50 -08:00
2022-12-28 00:51:22 -08:00
2023-02-25 18:41:37 -08:00
2023-01-16 17:38:04 -08:00
2023-03-14 16:50:59 -07:00
2023-02-23 23:57:19 -08:00
2022-12-28 00:51:22 -08:00
2023-01-19 23:59:20 -08:00
2022-12-28 00:51:22 -08:00
2023-03-02 19:02:10 -08:00
2023-01-13 11:38:16 -08:00
2023-01-07 19:55:51 -08:00
2023-03-02 19:02:10 -08:00
2023-02-23 23:57:19 -08:00
2022-11-12 18:30:12 -08:00
2023-02-15 19:31:14 -08:00
2023-02-23 23:57:19 -08:00
2023-01-23 04:06:01 -08:00
2023-01-19 20:32:38 -08:00
2023-03-02 19:02:10 -08:00
2022-12-28 00:51:22 -08:00
2023-01-13 11:38:16 -08:00
2023-02-23 23:57:19 -08:00
✂️
2022-12-28 19:28:12 -08:00
2022-12-28 00:51:22 -08:00
2023-01-26 04:43:57 -08:00
2023-02-23 23:57:19 -08:00
2022-12-28 00:51:22 -08:00
2023-01-13 11:38:16 -08:00
2023-02-23 23:57:19 -08:00
2023-03-02 19:02:10 -08:00
2023-03-02 19:02:10 -08:00
2023-02-23 23:57:19 -08:00
2023-02-28 21:56:28 -08:00
2023-02-23 23:57:19 -08:00
2023-02-23 23:57:19 -08:00
2022-12-28 00:51:22 -08:00
2022-12-28 00:51:22 -08:00
2023-02-23 23:57:19 -08:00
2022-12-28 00:51:22 -08:00
2023-02-23 23:57:19 -08:00