GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — t3code/scripts/mobile-native-static-check.test.ts at main · VitaCodez/t3code

Expand file tree

/

mobile-native-static-check.test.ts

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
26 lines (22 loc) · 1021 Bytes
/

mobile-native-static-check.test.ts

Copy path

File metadata and controls

26 lines (22 loc) · 1021 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { assert, it } from "@effect/vitest";
import * as Effect from "effect/Effect";
import { requireKotlinTools } from "./mobile-native-static-check.ts";
it.effect("allows Kotlin checks when ktlint and detekt are on PATH", () =>
requireKotlinTools({ ktlint: true, detekt: true }),
);
it.effect("fails when ktlint or detekt is missing instead of skipping", () =>
Effect.gen(function* () {
const ktlintError = yield* requireKotlinTools({ ktlint: false, detekt: true }).pipe(
Effect.flip,
);
if (ktlintError._tag !== "NativeStaticCheckMissingToolError") {
return assert.fail(`Unexpected error: ${ktlintError._tag}`);
}
assert.deepEqual(ktlintError.commands, ["ktlint"]);
const bothError = yield* requireKotlinTools({ ktlint: false, detekt: false }).pipe(Effect.flip);
if (bothError._tag !== "NativeStaticCheckMissingToolError") {
return assert.fail(`Unexpected error: ${bothError._tag}`);
}
assert.deepEqual(bothError.commands, ["ktlint", "detekt"]);
}),
);
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.