This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies { | |
| implementation(libs.spring.webflux) | |
| implementation(libs.spring.websocket) { | |
| exclude(group: 'org.springframework.boot', module: 'spring-boot-starter-web') | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @ts-check | |
| import eslintJs from "@eslint/js"; | |
| import stylistic from "@stylistic/eslint-plugin"; | |
| import { defineConfig } from "eslint/config"; | |
| import importPlugin from "eslint-plugin-import"; | |
| import jsdoc from "eslint-plugin-jsdoc"; | |
| import perfectionist from "eslint-plugin-perfectionist"; | |
| import reactPlugin from "eslint-plugin-react"; | |
| import sonarjs from "eslint-plugin-sonarjs"; | |
| import globals from "globals"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { EmptyStorageModel, IStorageBackend, StorageOptions } from "@react-native-community/async-storage"; | |
| export default class MockAsyncStorage<T = EmptyStorageModel> implements IStorageBackend<T> { | |
| private MOCK_STORAGE: T = {} as T; | |
| public async getSingle<K extends keyof T>(key: K, opts?: StorageOptions): Promise<T[K] | null> { | |
| const obj = await this.getMany<K>([key], opts); | |
| return obj[key] ?? null; | |
| } |