ES6 Plato on GitHub
Report Home
Summary Display
analyzer/__tests__/basic.test.ts
Maintainability
82.63
Lines of code
14
Difficulty
1.91
Estimated Errors
0.03
Function weight
By Complexity
By SLOC
import { test, describe, expect } from "vitest"; import { analyse } from "../src/index"; describe("Basic Test", () => { test("the test runner should run tests", () => { expect(true).toBe(true); }); test("calling analyse has the expected output", () => { expect(analyse("const x=5;")).toMatchSnapshot(); }); });