Skip to content

Commit 1246fa5

Browse files
author
Krzysztof Borowy
committed
last touches for real
1 parent 1299309 commit 1246fa5

File tree

7 files changed

+50
-60
lines changed

7 files changed

+50
-60
lines changed

example/__tests__/asyncstorage.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Async Storage functional tests', () => {
1212
const testNames = Object.keys(testCases);
1313
describe('storing / reading values', () => {
1414
for (const name of testNames) {
15-
it(`${name}`, async () => {
15+
it(name, async () => {
1616
const el = await cmd.elementByLabel(`test:${name}`);
1717
await expect(await el.getText()).toEqual('Pass');
1818
});
@@ -22,7 +22,7 @@ describe('Async Storage functional tests', () => {
2222
describe('storing / reading values with delegate', () => {
2323
for (const currentName of testNames) {
2424
const name = currentName + ' with delegate';
25-
it(`${name}`, async () => {
25+
it(name, async () => {
2626
const el = await cmd.elementByLabel(`test:${name}`);
2727
const label = await el.getText();
2828
if (label === 'Skip') {

jest/async-storage-mock.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/**
2-
* @format
3-
*/
1+
/* eslint-disable no-undef */
42

53
const merge = require('merge-options').bind({
64
concatArrays: true,

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"bundle:macos": "react-native bundle --entry-file index.ts --platform macos --bundle-output example/index.macos.jsbundle",
5656
"test": "concurrently -n lint,ts yarn:test:lint yarn:test:ts",
5757
"test:lint": "eslint src/**/*.ts example/**/*.ts jest/*.js",
58-
"test:ts": "tsc --project tsconfig.all.json",
58+
"test:ts": "tsc",
5959
"test:e2e:android": "scripts/android_e2e.sh 'test'",
6060
"test:e2e:ios": "scripts/ios_e2e.sh 'test'",
6161
"test:e2e:macos": "scripts/macos_e2e.sh 'test'"
@@ -72,7 +72,6 @@
7272
"@react-native-community/eslint-config": "^3.0.0",
7373
"@semantic-release/changelog": "^6.0.0",
7474
"@semantic-release/git": "^10.0.0",
75-
"@types/jest": "^29.5.2",
7675
"@types/lodash": "^4.14.184",
7776
"@types/mocha": "^10.0.1",
7877
"@types/react": "^18.0.0",
@@ -125,12 +124,10 @@
125124
],
126125
"extends": [
127126
"@react-native-community",
128-
"plugin:wdio/recommended",
129-
"plugin:jest/recommended"
127+
"plugin:wdio/recommended"
130128
],
131129
"rules": {
132-
"dot-notation": "off",
133-
"jest/no-deprecated-functions": "off"
130+
"dot-notation": "off"
134131
}
135132
},
136133
"prettier": {
@@ -151,7 +148,12 @@
151148
"targets": [
152149
"commonjs",
153150
"module",
154-
"typescript"
151+
[
152+
"typescript",
153+
{
154+
"project": "tsconfig.build.json"
155+
}
156+
]
155157
]
156158
},
157159
"release": {

tsconfig.all.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

tsconfig.build.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"compilerOptions": {
3+
"noFallthroughCasesInSwitch": true,
4+
"noImplicitOverride": true,
5+
"noImplicitReturns": true,
6+
"noPropertyAccessFromIndexSignature": true,
7+
"noUnusedLocals": true,
8+
"noUnusedParameters": true,
9+
"strict": true,
10+
"moduleResolution": "Node",
11+
"resolveJsonModule": true,
12+
"allowJs": true,
13+
"checkJs": true,
14+
"allowSyntheticDefaultImports": true,
15+
"forceConsistentCasingInFileNames": true,
16+
"jsx": "react",
17+
"target": "ESNext",
18+
"skipLibCheck": true
19+
},
20+
"include": [
21+
"src"
22+
]
23+
}

tsconfig.json

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
{
2+
"extends": "./tsconfig.build.json",
23
"compilerOptions": {
3-
"noFallthroughCasesInSwitch": true,
4-
"noImplicitOverride": true,
5-
"noImplicitReturns": true,
6-
"noPropertyAccessFromIndexSignature": true,
7-
"noUnusedLocals": true,
8-
"noUnusedParameters": true,
9-
"strict": true,
10-
"moduleResolution": "Node",
11-
"resolveJsonModule": true,
12-
"allowJs": true,
13-
"checkJs": true,
14-
"allowSyntheticDefaultImports": true,
15-
"forceConsistentCasingInFileNames": true,
16-
"jsx": "react",
17-
"target": "ESNext",
18-
"skipLibCheck": true
4+
"noEmit": true,
5+
"types": [
6+
"node",
7+
"mocha",
8+
"@wdio/globals/types",
9+
"@wdio/mocha-framework",
10+
"expect-webdriverio"
11+
]
1912
},
20-
"include": ["src"]
13+
"include": [
14+
"example/**/*.ts",
15+
"example/**/*.tsx"
16+
]
2117
}

yarn.lock

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,7 +2959,6 @@ __metadata:
29592959
"@react-native-community/eslint-config": ^3.0.0
29602960
"@semantic-release/changelog": ^6.0.0
29612961
"@semantic-release/git": ^10.0.0
2962-
"@types/jest": ^29.5.2
29632962
"@types/lodash": ^4.14.184
29642963
"@types/mocha": ^10.0.1
29652964
"@types/react": ^18.0.0
@@ -3753,16 +3752,6 @@ __metadata:
37533752
languageName: node
37543753
linkType: hard
37553754

3756-
"@types/jest@npm:^29.5.2":
3757-
version: 29.5.2
3758-
resolution: "@types/jest@npm:29.5.2"
3759-
dependencies:
3760-
expect: ^29.0.0
3761-
pretty-format: ^29.0.0
3762-
checksum: 7d205599ea3cccc262bad5cc173d3242d6bf8138c99458509230e4ecef07a52d6ddcde5a1dbd49ace655c0af51d2dbadef3748697292ea4d86da19d9e03e19c0
3763-
languageName: node
3764-
linkType: hard
3765-
37663755
"@types/jsftp@npm:2.1.2":
37673756
version: 2.1.2
37683757
resolution: "@types/jsftp@npm:2.1.2"
@@ -8342,7 +8331,7 @@ __metadata:
83428331
languageName: node
83438332
linkType: hard
83448333

8345-
"expect@npm:^29.0.0, expect@npm:^29.5.0":
8334+
"expect@npm:^29.5.0":
83468335
version: 29.5.0
83478336
resolution: "expect@npm:29.5.0"
83488337
dependencies:
@@ -14629,7 +14618,7 @@ __metadata:
1462914618
languageName: node
1463014619
linkType: hard
1463114620

14632-
"pretty-format@npm:^29.0.0, pretty-format@npm:^29.5.0":
14621+
"pretty-format@npm:^29.5.0":
1463314622
version: 29.5.0
1463414623
resolution: "pretty-format@npm:29.5.0"
1463514624
dependencies:

0 commit comments

Comments
 (0)