mirror of
https://github.com/appium/appium.git
synced 2026-10-24 09:45:38 +08:00
- add `jsconfig.json` for the TS language server to understand the project - update `.wallaby.js` to transpile fixtures if necessary; run on save to reduce lag - update single-file Mocha debug launch config - add `test` env in `babel.config.json` which is used by the former - add some handy vscode tasks - add a bunch of types - remove unused `babel-eslint` (we use `@babel/eslint-parser`) - bump `ecmaVersion` in `eslint-config-appium` - remove cruft from babel configs (`shippedProposals: true` goes a long way) - enable `sinon-chai` globally in tests - add `rewiremock` for module-level mocking (sinon cannot do this itself, but they work in tandem)
39 lines
747 B
JSON
39 lines
747 B
JSON
{
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"targets": {
|
|
"node": "12"
|
|
},
|
|
"shippedProposals": true
|
|
}
|
|
]
|
|
],
|
|
"plugins": [
|
|
"source-map-support",
|
|
"@babel/plugin-transform-runtime",
|
|
["@babel/plugin-proposal-private-methods", {"loose": true}],
|
|
["@babel/plugin-proposal-class-properties", {"loose": true}],
|
|
["@babel/plugin-proposal-private-property-in-object", {"loose": true}]
|
|
],
|
|
"comments": false,
|
|
"sourceMaps": "both",
|
|
"env": {
|
|
"coverage": {
|
|
"plugins": [
|
|
[
|
|
"istanbul",
|
|
{
|
|
"exclude": ["test", "build"]
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"test": {
|
|
"retainLines": true,
|
|
"comments": true
|
|
}
|
|
}
|
|
}
|