Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"@electron/notarize": "^3.1.2",
"@sentry/bundler-plugins": "11.12.0",
"@sentry/cli": "^3.8.2",
"@types/jest": "27.5.2",
"@types/node": "^22.19.1",
"@types/prismjs": "^1.26.5",
"@types/react": "^19.2.7",
Expand Down
2 changes: 0 additions & 2 deletions scripts/typecheck-baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ src/app/App.js(322,24): error TS2769: No overload matches this call.
Property 'title' does not exist on type 'IntrinsicAttributes & SvgIconOwnProps & CommonProps & Omit<SVGProps<SVGSVGElement>, "fontSize" | ... 10 more ... | "titleAccess">'.
src/app/App.js(466,12): error TS2739: Type '{ error: any; onClose: any; }' is missing the following properties from type '{ error: any; onClose: any; needReload: any; title: any; }': needReload, title
src/app/App.js(512,10): error TS2741: Property 'needReload' is missing in type '{ error: any; title: any; onClose: () => void; }' but required in type '{ error: any; onClose: any; needReload: any; title: any; }'.
src/app/App.test.js(5,1): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
src/app/App.test.js(13,3): error TS2304: Cannot find name 'expect'.
src/app/store/Alignment.js(27,5): error TS2554: Expected 5-6 arguments, but got 3.
src/app/store/Alignment.js(54,5): error TS2554: Expected 5-6 arguments, but got 3.
src/app/store/Alignment.js(138,5): error TS2554: Expected 5-6 arguments, but got 3.
Expand Down
2 changes: 1 addition & 1 deletion src/app/bootstrap.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.

function loadBootstrap( nodeEnv ) {
const previousEnv = process.env.NODE_ENV;
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/ErrorDialog.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import React, { act } from 'react';
import { createRoot } from 'react-dom/client';
import ErrorDialog from './ErrorDialog';
Expand Down
2 changes: 1 addition & 1 deletion src/app/droppedFile.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import React, { act } from 'react';
import { createRoot } from 'react-dom/client';
import { ThemeProvider } from '@mui/material/styles';
Expand Down
1 change: 0 additions & 1 deletion src/app/paths.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import {
base, basename, dir, join, name, quote,
} from './paths';
Expand Down
1 change: 0 additions & 1 deletion src/app/report.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import { cleanStack, serializeAndCleanError } from './report';

it( 'drops node and electron frames from a stack', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/astral.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';
import { runEvents } from './StoreBase';

Expand Down
2 changes: 1 addition & 1 deletion src/app/store/cancelRun.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import fs from 'fs';
import os from 'os';
import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/checkOutputName.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import { when } from 'mobx';
import Run from './Run';

Expand Down
2 changes: 1 addition & 1 deletion src/app/store/darkMode.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import { act } from 'react';

import Config from './Config';
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/host.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.

function install( host ) {
let reads = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/loadAlignment.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';

const stayParsed = async () => ( {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/loadAstralTree.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';

it( 'the ASTRAL file picker adds the chosen file', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/loadPartitionFile.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';

it( 'the partition picker uses the chosen file', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/loadTree.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';

it( 'each tree picker keeps the chosen file', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/menu.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import RunList from './RunList';

function bridge() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/modelSelection.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';
import { runEvents } from './StoreBase';

Expand Down
2 changes: 1 addition & 1 deletion src/app/store/openPath.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';

it( 'opens a result file through the renderer bridge', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/parseAlignment.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';

const alignment = {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/provideStateReport.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.

it( 'provideStateReport registers the store report once', () => {
const provideStateReport = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/readText.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';

it( 'reads a text file through the renderer bridge', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/selectOutputDir.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';

it( 'the output-directory picker sets the chosen directory', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/showItemInFolder.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import InputFile from './InputFile';
import Run from './Run';

Expand Down
2 changes: 1 addition & 1 deletion src/app/store/startRun.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import fs from 'fs';
import os from 'os';
import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/version.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import AppStore from './AppStore';

it( 'the page learns the app version from getVersion', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/writeConcatenatedAlignment.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import Run from './Run';

it( 'writes one concatenated FASTA', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/unhandledError.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import React, { act } from 'react';
import { createRoot } from 'react-dom/client';
import Page from './index';
Expand Down
2 changes: 1 addition & 1 deletion src/main/cancelRun.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import { spawn } from 'child_process';
import { once } from 'events';
import fs from 'fs';
Expand Down
1 change: 0 additions & 1 deletion src/main/checkOutput.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import fs from 'fs';
import os from 'os';
import path from 'path';
Expand Down
1 change: 0 additions & 1 deletion src/main/debugInfo.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import { debugInfo } from './debugInfo';

it( 'debugInfo includes the app name and version, the Electron version, the platform, the OS release, and the locale', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/main/getActiveState.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.

const mockSend = jest.fn();
const mockOn = jest.fn();
Expand Down
1 change: 0 additions & 1 deletion src/main/pageWindowPreferences.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import { pageWindowPreferences } from './pageWindowPreferences';

it( 'every window runs with Node shut out, isolation on, and the sandbox on', () => {
Expand Down
1 change: 0 additions & 1 deletion src/main/parseAlignment.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import { parseAlignment } from './parseAlignment';

function tools( parse, extra = {} ) {
Expand Down
1 change: 0 additions & 1 deletion src/main/selectAlignment.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import { selectAlignment } from './selectAlignment';

it( 'selectAlignment resolves the chosen alignment paths and names', async () => {
Expand Down
1 change: 0 additions & 1 deletion src/main/selectAstralFile.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import { selectAstralFile } from './selectAstralFile';

it( 'selectAstralFile resolves the chosen ASTRAL path and name', async () => {
Expand Down
1 change: 0 additions & 1 deletion src/main/selectOutputDir.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import * as ipc from '../constants/ipc';
import { selectOutputDir } from './selectOutputDir';

Expand Down
1 change: 0 additions & 1 deletion src/main/selectPartitionFile.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import * as ipc from '../constants/ipc';
import { selectPartitionFile } from './selectPartitionFile';

Expand Down
1 change: 0 additions & 1 deletion src/main/selectTree.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
import * as ipc from '../constants/ipc';
import { selectTree } from './selectTree';

Expand Down
2 changes: 1 addition & 1 deletion src/main/updates.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
// @ts-nocheck — test doubles and window.rendererBridge are untyped.
import fs from 'fs';
import path from 'path';
import { setImmediate } from 'timers';
Expand Down
1 change: 0 additions & 1 deletion src/pageNodeImports.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
const fs = require( 'fs' );
const path = require( 'path' );

Expand Down
1 change: 0 additions & 1 deletion src/preload.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
const { spawnSync } = require( 'child_process' );
const fs = require( 'fs' );
const os = require( 'os' );
Expand Down
1 change: 0 additions & 1 deletion src/sourceMaps.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
const { spawnSync } = require( 'child_process' );
const path = require( 'path' );
const { version } = require( '../package.json' );
Expand Down
1 change: 0 additions & 1 deletion src/typecheckBaseline.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck — Jest globals. checkJs has no test runner types.
const { freshLines, unusedLines } = require( '../scripts/typecheck-baseline' );

it( 'reports a diagnostic line that the baseline does not list', () => {
Expand Down
12 changes: 10 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3303,6 +3303,14 @@
dependencies:
"@types/istanbul-lib-report" "*"

"@types/jest@27.5.2":
version "27.5.2"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.5.2.tgz#ec49d29d926500ffb9fd22b84262e862049c026c"
integrity sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==
dependencies:
jest-matcher-utils "^27.0.0"
pretty-format "^27.0.0"

"@types/json-schema@^7.0.9":
version "7.0.15"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"
Expand Down Expand Up @@ -7110,7 +7118,7 @@ jest-leak-detector@^27.5.1:
jest-get-type "^27.5.1"
pretty-format "^27.5.1"

jest-matcher-utils@^27.5.1:
jest-matcher-utils@^27.0.0, jest-matcher-utils@^27.5.1:
version "27.5.1"
resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz#9c0cdbda8245bc22d2331729d1091308b40cf8ab"
integrity sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==
Expand Down Expand Up @@ -8554,7 +8562,7 @@ pretty-bytes@^4.0.2:
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9"
integrity sha512-yJAF+AjbHKlxQ8eezMd/34Mnj/YTQ3i6kLzvVsH4l/BfIFtp444n0wVbnsn66JimZ9uBofv815aRp1zCppxlWw==

pretty-format@^27.5.1:
pretty-format@^27.0.0, pretty-format@^27.5.1:
version "27.5.1"
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e"
integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==
Expand Down
Loading