30 Commits

Author SHA1 Message Date
Hiroshi Ogawa
bc333dbae7
test: fix test/snapshots and add it to ci (#6333) 2024-08-13 09:05:54 +02:00
Vladimir
30f728bc1a
feat: custom "snapshotEnvironment" option (#5449) 2024-05-03 10:21:03 +02:00
Vladimir
7c993e9454
test: standardising internal test (#5600) 2024-04-26 15:43:27 +02:00
Hiroshi Ogawa
86297d42d0
fix(vitest): delegate snapshot options to workspace from root config (#5199) 2024-02-16 09:49:25 +01:00
Han
5b1021daf7
feat(config): add snapshotSerializers option (#5092) 2024-02-06 13:21:34 +01:00
Vladimir Sheremet
0ec205127b test: make tests longer 2024-01-04 18:16:59 +01:00
Hiroshi Ogawa
06c14f7d9f
fix(vitest): fix file snapshots in skipped suites considered obsolete (#4795) 2023-12-28 16:29:28 +01:00
Hiroshi Ogawa
957daa3286
fix(vitest): initialize snapshot state only once for each file suite (#4796) 2023-12-28 11:13:22 +01:00
Vladimir
cc19117d30
chore: migrate to flat eslint config (#4472) 2023-11-11 08:07:39 +01:00
Vladimir Sheremet
dd7ae1f46a chore: add type: module, remove old examples 2023-11-10 13:24:26 +01:00
Hiroshi Ogawa
ac30972674
fix: apply serializer to Error instance for thrown snapshot (#4396)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-11-02 15:11:35 +01:00
Vladimir
a3dc47b038
feat!(snapshot): make snapshots more visually pleasing (#3961) 2023-09-27 10:27:32 +02:00
RobertPechaCZ
01e01bfcdc
fix(snapshot): support mix of normal/with placeholders snapshots (#4118) 2023-09-14 10:19:29 +02:00
Han
7b740a278e
fix(snapshots): update inline snapshot correctly (#3887) 2023-08-15 15:49:19 +02:00
renovate[bot]
0f86ff9897
chore(deps): update all non-major dependencies (#2766)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-06 16:53:03 +02:00
Anthony Fu
bdc06dcbc4
feat(snapshot): introduce toMatchFileSnapshot and auto queuing expect promise (#3116) 2023-04-03 16:03:46 +02:00
Vladimir
6aff0176db
feat!: move snapshot implementation into @vitest/snapshot (#3032) 2023-03-29 15:35:51 +02:00
btea
f6e0ede661
chore: update snapshot url (#3063) 2023-03-23 10:10:02 +01:00
Lioness100
2f87505ffd
docs: fix typos (#2815) 2023-02-08 11:30:35 +01:00
Vladimir
482b72fc5f
feat!: move test runner into a separate package (#2721)
Closes https://github.com/vitest-dev/vitest/issues/1470
2023-01-23 10:14:50 +01:00
Lioness100
f13e54f096
chore: fix typos (#1857)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-08-15 18:38:15 +00:00
Vladimir
9f9216fe61
fix: correctly generate inline snapshots inside js files (#1510)
* fix: correctly generate inline snapshots inside js files

* chore: cleanup

* chore: add full link to comment

* test: imvrove snapshot generated test

* chore: remove snapshots :S

* chore: fix lockfile

* chore: generate inline snapshot test instead of using one
2022-06-21 12:00:36 +03:00
Anthony Fu
4f198ef284
feat: test context (#900)
* feat: support concurrent snapshot
* feat: cleanup callback for `beforeAll` and `beforeEach`
2022-04-25 21:52:25 +08:00
Jess
7952647601
feat: adding ui component tests (#590)
* docs: additional cypress + vitest comparison content

* feat: ui testing

* fix: seperate cypress tests

* feat: adding cypress component testing for ui

* chore: share the common deps for global app setup

* spacing

* Update package.json

Co-authored-by: Michel EDIGHOFFER <edimitchel@gmail.com>

* chore: adding OptimizationPersist + PkgConfig to reduce flake

* chore: workaround for unocss hmr

* chore: adding ts-ignore comments

* chore: reordering data-testid

* chore: ts-expect-error

* --allow-empty

* bug: reproduction of failing vite + cypress setup

* chore: adding Vite 2.9.0-beta.3 to cold-start stability issues for UI component tests

* chore: fixing types

* chore: fixing types

* reenabling tests

* adding faker seed back in

* bumping faker version

Co-authored-by: Michel EDIGHOFFER <edimitchel@gmail.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-03-21 19:18:44 +08:00
alexzhang1030
a8955bb8a5
fix: update inlineSnapshot should not remove end whitespace, close #922 (#956) 2022-03-16 15:18:25 +08:00
Anthony Fu
621300d0a0 chore: lint for md and json 2022-03-08 03:30:59 +08:00
poyoho
5a848c0e77
fix(snapshot): received add prepareExpected (#711) 2022-02-09 21:44:10 +08:00
Ivan Demchuk
36e6207403
docs: use vitest run mode for coverage examples (fix #602) (#611) 2022-01-23 18:11:56 +08:00
patak
22d2deda69
refactor: rename global to globals (#565) 2022-01-18 13:16:44 +08:00
Vladimir
4b0bd3ff94 test: non default options in snapshot 2022-01-11 11:55:47 +03:00