- Support run
jest-preview
on remote server
- Inline
@import
statement - Support LESS
- Support viewing SVG when importing as a component in React
- Use PostCSS configure to transform CSS
- Convert to
pnpm
- Convert cypress tests to typescript
- Fix bug Jest Preview Dashboard does not reload on Linux systems.
- Write
index.html
to disk, instead ofbody.html
andhead.html
separately - Merge
file
andfileCRA
transformations
- Support old version of Sass
- Fix do not show image if use with
ts-jest
- Re-architect CSS Code Transformation (Pre-process => Post-process)
- Support SCSS Modules
- Support basic TailwindCSS
- Improve config-cra on monorepo
- Add a new CLI:
jest-preview clear-cache
- Try catch more strict in
postinstall
- Notify user when there is a new "latest" version
- Deprecate
externalCss
(gradually)
- Sass enhancement
- Improve docs and message in Jest Preview Dashboard
- Make relative filenames consistent between Operating systems.
- Fix sass on Windows.
- Add cross-env to run on Windows
- Support Jest 28
- Add Jest 28 example
- First class support for Create React App
- Support more CSS-in-JS libraries such as emotion
- Add tests
- Add docs
- Auto preview UI whenever a test fails, you don't have to call
preview.debug()
manually.
- Fix jest-preview postinstall script can't run on folder with space in name
- Add an adapter for Next.js's Rust compiler for Jest
- Add examples for and Next Jest Rust Compiler and Next Jest Babel
- Support non-english characters and responsive design.
- Support Sass.
- Fix:
jest --clearCache
might break user's installation flow sincejest
might be installed afterjest-preview
.
- Support serving files from Public folder.
- Clear Jest cache after installation.
- Update rollup to:
- Terser
- Transpile to ES2019 (e.g: optional chaining)
- Export
debug
as named also. - Handle CSS Modules asynchronously.
- Add pre-configured transformers, so users can integrate
jest-preview
to their projects easier.jest-preview/transforms/css
jest-preview/transforms/file
jest-preview/transforms/fileCRA
- Support CSS Modules.
- Caveat: Support CSS Modules for CRA in next version.
- [BREAKING CHANGES] Simplify usage of the core function of jest-preview:
preview(htmlElement)
topreview.debug()
. - Users do not need to pass any argument to
preview.debug()
, the default isdocument.body
which is the whole page (how authors expect users to use jest-preview). - Add
title
andfavicon.ico
for Dashboard.
- Fix
externalCss
get cached.
- Rewrite transforms. Do not need to copy assets to cache folder.
- Add
processFileCRA
for CRA file transform. - [BREAKING CHANGES for CRA users] CRA users need to update
fileTransform.js
to useprocessFileCRA
. See more at CRA README.md.
- Simplify the usage in docs and examples:
preview(render(<App />).container)
=>preview(document.body)
.
- Reuse opening jest-preview server tab on Chrome Mac.
- Fix #15
- Update publish scripts.
- Add
previewServer
expose asjest-preview
cli. - Add css and file transforms.
- Support direct CSS import.
- Support viewing images, media files...
- Support styled-components.
- Reload browser using web socket.
- Watch
index.html
on created and removed. Add websocket reload for fallback page. - Fix README.md.
- Add
previewServer
expose asjest-preview
cli. - Add css and file transforms.
- Support direct CSS import.
- Support viewing images, media files...
- Support styled-components.
- Reload browser using web socket.