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
''' | |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
β Iluminacao β | |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ | |
β + status: boolean β | |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ | |
β + ligar(): void β | |
β + desligar(): void β | |
β + getStatus(): boolean β | |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
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
// yarn add --dev jest @types/jest @swc/core @swc/jest | |
module.exports = { | |
testEnvironment: "jsdom", | |
// setupFilesAfterEnv: ["<rootDir>/src/tests/setupTests.js"], // Uncomment if you need to run setupTests.js | |
collectCoverage: true, | |
moduleDirectories: ["node_modules", "<rootDir>"], | |
collectCoverageFrom: [ | |
"**/*.{js,jsx,ts,tsx}", | |
"!**/*.d.ts", | |
"!**/node_modules/**", |
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 { Suspense } from "react"; | |
import graphql from "babel-plugin-relay/macro"; | |
import { | |
RelayEnvironmentProvider, | |
loadQuery, | |
usePreloadedQuery, | |
} from "react-relay/hooks"; | |
import { ErrorBoundary } from "react-error-boundary"; | |
import RelayEnvironment from "./RelayEnvironment"; |