Comments (2)
// jest.config.js
module.exports = {
bail: 1,
verbose: true,
testEnvironment: 'jsdom',
moduleFileExtensions: ['js', 'ts'],
// testMatch: ['<rootDir>/**/__test__/**/*.test.{js,ts}'],
// collectCoverageFrom: [
// '<rootDir>/**/*.{js,ts}',
// '!<rootDir>/weui-wxss/**',
// '!**/__test__/**'
// ],
snapshotSerializers: ['miniprogram-simulate/jest-snapshot-plugin']
};
from miniprogram-simulate.
我发现不用配置jest.config.js就行,不要用snapshotSerializers: ['miniprogram-simulate/jest-snapshot-plugin']就ok了
from miniprogram-simulate.
Related Issues (20)
- About the license of components invoked by this Project. HOT 1
- 开启 virtualHost 之后,无法获取组件实例 HOT 2
- 开启 virtualHost 单测环境中渲染结果与官网描述不一致 HOT 2
- 使用comp.triggerLifeTime('ready')或者其他功能时,微信官方api(非wx.xxx)无法成功调用 HOT 3
- 是否支持 selectOwnerComponent HOT 4
- 能不能给一个搭配vitest的示例?
- How config miniprogram-simulate in Alipay mini program HOT 3
- Uniapp 编写的小程序可以使用么 HOT 1
- 小程序页面过多导致wxml编译缓存区过大 HOT 14
- wxs后缀的文件不支持吗 HOT 1
- 当自定义组件名称为return-app时候报错,换个名字就不报错了,求改进方式
- wx.getAccountInfoSync().miniProgram.envVersion报错问题 HOT 5
- 使用插件导致编译出错 HOT 5
- getStorageSync 套了一层JSON.parse,传入如果存入字符串,获取就会报错 HOT 3
- TypeError: wx.nextTick is not a function HOT 1
- pretty-format依赖应声明为dependencies
- view 的 animation 属性,会导致组件无法渲染,该怎么处理
- ReferenceError: getCurrentPages is not defined HOT 1
- spawnSync ENOENT HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miniprogram-simulate.