Skip to content

Commit 34e7334

Browse files
committed
ci: fix tests
1 parent d0b3de9 commit 34e7334

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

examples/common-tests/src/useTests.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/ban-ts-comment */
12
import { useState } from "react";
23
import isEqual from "lodash.isequal";
34
import { AsyncStorageError } from "@react-native-async-storage/async-storage";
@@ -49,10 +50,13 @@ export function useTests() {
4950

5051
function reportError(e: any) {
5152
if (e instanceof AsyncStorageError) {
53+
// @ts-ignore
5254
alert("AsyncStorageError" + "\n" + `type: ${e.type}` + "\n" + e.message);
5355
} else if (e instanceof Error) {
56+
// @ts-ignore
5457
alert(e.name + "\n" + e.message);
5558
} else {
59+
// @ts-ignore
5660
alert(JSON.stringify(e, null, 2));
5761
}
5862
}

examples/react-native/src/components/TestRunnerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TestRunner } from "example-common-tests";
1+
import type { TestRunner } from "example-common-tests";
22
import React from "react";
33
import { Button, Pressable, ScrollView, Text, View } from "react-native";
44

packages/async-storage/src/createAsyncStorage.windows.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ let warned = false;
1616
export function createAsyncStorage(_: string): AsyncStorage {
1717
if (!warned && __DEV__) {
1818
warned = true;
19+
// eslint-disable-next-line
1920
console.warn(
2021
"[AsyncStorage] Warning: Creating custom storages is not supported on Windows. Falling back to the legacy implementation."
2122
);

0 commit comments

Comments
 (0)