- Instalaรงรฃo:
npm i vitest -D
npm i jsdom -D
npm i @testing-library/react @testing-library/jest-dom @testing-library/user-event -D
npm i @types/jest -D
- Acrescentar os scripts
teste
ecoverage
ao package.json:
npm i vitest -D
npm i jsdom -D
npm i @testing-library/react @testing-library/jest-dom @testing-library/user-event -D
npm i @types/jest -D
teste
e coverage
ao package.json:// disable forced dark mode to prevent weird color changes | |
// eslint-disable-next-line @typescript-eslint/no-var-requires | |
const { createRunOncePlugin, withAndroidStyles, AndroidConfig } = require('expo/config-plugins') | |
function setForceDarkModeToFalse(styles) { | |
const newStyles = AndroidConfig.Styles.assignStylesValue(styles, { | |
add: true, | |
// ############# FOLLOW IF YOU'RE ON SDK 52 ############# | |
// TODO: AndroidConfig.Styles.getAppThemeGroup() will be available in SDK 52 (or expo/config-plugins 9+), for now I just hardcoded AppTheme | |
// parent: AndroidConfig.Styles.getAppThemeGroup(), |
With VSCode version 1.94, the APC extension broke and there is no fix yet.
So, for those having issues with APC after the VSCode update, I recommend downloading the previous version of VSCode for now (https://code.visualstudio.com/updates/v1_93) and setting updates to manual by adding this to the editor's configuration:
"update.mode": "manual",
People
![]() :bowtie: |
๐ :smile: |
๐ :laughing: |
---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |