Update dependencies and remove unneeded things. This allows building on node v22. Also rely on configs for eslint/prettier so CI and command line runs are guaranteed to be consistent.
This commit is contained in:
committed by
Daniël van Noord
parent
9e98208c19
commit
a1aaa3de8f
@@ -1,8 +1,8 @@
|
||||
import { before, beforeEach, describe, it } from 'mocha';
|
||||
import { assert } from 'chai';
|
||||
import { l, Game } from '../../GlobalsForTesting';
|
||||
import { l, Game } from '../../GlobalsForTesting.js';
|
||||
|
||||
import ToggleBotBar from '../../../src/Config/Toggles/ToggleBotBar';
|
||||
import ToggleBotBar from '../../../src/Config/Toggles/ToggleBotBar.js';
|
||||
|
||||
describe('ToggleBotBar', () => {
|
||||
global.l = l;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { before, beforeEach, describe, it } from 'mocha';
|
||||
import { assert } from 'chai';
|
||||
import { Game } from '../../GlobalsForTesting';
|
||||
import { Game } from '../../GlobalsForTesting.js';
|
||||
|
||||
import ToggleDetailedTime from '../../../src/Config/Toggles/ToggleDetailedTime';
|
||||
import { BackupFunctions } from '../../../src/Main/VariablesAndData';
|
||||
import ToggleDetailedTime from '../../../src/Config/Toggles/ToggleDetailedTime.js';
|
||||
import { BackupFunctions } from '../../../src/Main/VariablesAndData.js';
|
||||
|
||||
describe('ToggleDetailedTime', () => {
|
||||
global.Game = Game;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { before, beforeEach, describe, it } from 'mocha';
|
||||
import { assert } from 'chai';
|
||||
import { l } from '../../GlobalsForTesting';
|
||||
import { l } from '../../GlobalsForTesting.js';
|
||||
|
||||
import ToggleGCTimer from '../../../src/Config/Toggles/ToggleGCTimer';
|
||||
import { GCTimers } from '../../../src/Disp/VariablesAndData';
|
||||
import { CacheGoldenShimmersByID } from '../../../src/Cache/VariablesAndData';
|
||||
import ToggleGCTimer from '../../../src/Config/Toggles/ToggleGCTimer.js';
|
||||
import { GCTimers } from '../../../src/Disp/VariablesAndData.js';
|
||||
import { CacheGoldenShimmersByID } from '../../../src/Cache/VariablesAndData.js';
|
||||
|
||||
describe('ToggleGCTimer', () => {
|
||||
global.l = l;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { before, beforeEach, describe, it } from 'mocha';
|
||||
import { assert } from 'chai';
|
||||
import { l } from '../../GlobalsForTesting';
|
||||
import { l } from '../../GlobalsForTesting.js';
|
||||
|
||||
import ToggleSectionHideButtons from '../../../src/Config/Toggles/ToggleSectionHideButtons';
|
||||
import ToggleSectionHideButtons from '../../../src/Config/Toggles/ToggleSectionHideButtons.js';
|
||||
|
||||
describe('ToggleSectionHideButtons', () => {
|
||||
global.l = l;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { before, beforeEach, describe, it } from 'mocha';
|
||||
import { assert } from 'chai';
|
||||
import { l } from '../../GlobalsForTesting';
|
||||
import { l } from '../../GlobalsForTesting.js';
|
||||
|
||||
import ToggleToolWarnPos from '../../../src/Config/Toggles/ToggleToolWarnPos';
|
||||
import ToggleToolWarnPos from '../../../src/Config/Toggles/ToggleToolWarnPos.js';
|
||||
|
||||
describe('ToggleToolWarnPos', () => {
|
||||
global.l = l;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { before, beforeEach, describe, it } from 'mocha';
|
||||
import { assert } from 'chai';
|
||||
import { l, Game } from '../../GlobalsForTesting';
|
||||
import { l, Game } from '../../GlobalsForTesting.js';
|
||||
|
||||
import ToggleUpgradeBarAndColour from '../../../src/Config/Toggles/ToggleUpgradeBarAndColour';
|
||||
import ToggleUpgradeBarAndColour from '../../../src/Config/Toggles/ToggleUpgradeBarAndColour.js';
|
||||
|
||||
describe('ToggleUpgradeBarAndColour', () => {
|
||||
global.l = l;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { before, beforeEach, describe, it } from 'mocha';
|
||||
import { assert } from 'chai';
|
||||
import { l } from '../../GlobalsForTesting';
|
||||
import { l } from '../../GlobalsForTesting.js';
|
||||
|
||||
import ToggleUpgradeBarFixedPos from '../../../src/Config/Toggles/ToggleUpgradeBarFixedPos';
|
||||
import ToggleUpgradeBarFixedPos from '../../../src/Config/Toggles/ToggleUpgradeBarFixedPos.js';
|
||||
|
||||
describe('ToggleUpgradeBarFixedPos', () => {
|
||||
global.l = l;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { before, beforeEach, describe, it } from 'mocha';
|
||||
import { assert } from 'chai';
|
||||
import { l, Game } from '../../GlobalsForTesting';
|
||||
import { l, Game } from '../../GlobalsForTesting.js';
|
||||
|
||||
import ToggleWrinklerButtons from '../../../src/Config/Toggles/ToggleWrinklerButtons';
|
||||
import ToggleWrinklerButtons from '../../../src/Config/Toggles/ToggleWrinklerButtons.js';
|
||||
|
||||
describe('ToggleWrinklerButtons', () => {
|
||||
global.l = l;
|
||||
|
||||
Reference in New Issue
Block a user