You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running the included tests using yarn test doesn't work. The tests as configured use an ESM-based theme, which jest/yarn isn't configured to use. If you change it to use a CJS-based theme, the tests fail.
To Reproduce
Create a new clone, and install using yarn
Run npx jest
Observe the failure message (included as an attachment)
If you then change src/utils/SyntaxHiglight.js to import react-syntax-highlighter/dist/cjs/styles/hljs (to get a CommonJS version), the tests now run, but do not pass. Again, see included failure message as an attachment
Expected behavior
The tests should pass on a clean checkout, or should not be included.
Screenshots
See attachments.
Desktop (please complete the following information):
OS: Windows 11
Browser: N/A
Version: Current checkout (1.2.0)
The text was updated successfully, but these errors were encountered:
Describe the bug
Running the included tests using
yarn test
doesn't work. The tests as configured use an ESM-based theme, which jest/yarn isn't configured to use. If you change it to use a CJS-based theme, the tests fail.To Reproduce
yarn
npx jest
If you then change
src/utils/SyntaxHiglight.js
to importreact-syntax-highlighter/dist/cjs/styles/hljs
(to get a CommonJS version), the tests now run, but do not pass. Again, see included failure message as an attachmentExpected behavior
The tests should pass on a clean checkout, or should not be included.
Screenshots
See attachments.
Desktop (please complete the following information):
OS: Windows 11
Browser: N/A
Version: Current checkout (1.2.0)
The text was updated successfully, but these errors were encountered: