diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 01a74f010..4d432ed34 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -29,10 +29,10 @@ updates: - "node-fetch" test: patterns: - - "mocha" - - "chai" - - "@types/chai" - - "@types/mocha" + - "jest" + - "eslint" + - "@types/eslint" + - "@types/jest" - package-ecosystem: "github-actions" # See documentation for possible values directory: "/" # Location of package manifests schedule: diff --git a/.github/workflows/publish-to-vscode.yml b/.github/workflows/publish-to-vscode.yml index 750aaeedc..51c24a404 100644 --- a/.github/workflows/publish-to-vscode.yml +++ b/.github/workflows/publish-to-vscode.yml @@ -1,6 +1,5 @@ # This is a basic workflow to help you get started with Actions name: 📦 Publish To Vscode - env: FORCE_COLOR: true diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 2ef5ccbe1..3f6ade1ce 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,7 +1,6 @@ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages name: PR - env: FORCE_COLOR: true diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 4c5f03fef..cc39b11fd 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -1,6 +1,5 @@ # This is a basic workflow to help you get started with Actions name: 📋 Unit Test - env: FORCE_COLOR: true diff --git a/server/src/lib/util/array.test.ts b/server/src/lib/util/array.test.ts index 1040a1637..ab49e380d 100644 --- a/server/src/lib/util/array.test.ts +++ b/server/src/lib/util/array.test.ts @@ -4,7 +4,7 @@ describe("Array Functions", () => { test("removeDuplicate string", () => { const items = ["string 1", "string 2", "string 3", "string 2"]; const pruned = removeDuplicate(items); - expect(pruned.length).toEqual(3); + expect(pruned).toHaveLength(3); }); test("removeDuplicate number", () => { @@ -12,7 +12,7 @@ describe("Array Functions", () => { const pruned = removeDuplicate(items); - expect(pruned.length).toEqual(3); + expect(pruned).toHaveLength(3); }); test("removeDuplicate boolean", () => { @@ -20,7 +20,7 @@ describe("Array Functions", () => { const pruned = removeDuplicate(items); - expect(pruned.length).toEqual(2); + expect(pruned).toHaveLength(2); }); test("DupeCheckAdd string", () => { @@ -30,7 +30,7 @@ describe("Array Functions", () => { DupeCheckAdd(items, "string 3"); DupeCheckAdd(items, "string 2"); - expect(items.length).toEqual(3); + expect(items).toHaveLength(3); }); test("DupeCheckAdd number", () => { @@ -41,7 +41,7 @@ describe("Array Functions", () => { DupeCheckAdd(items, 2); DupeCheckAdd(items, 1); - expect(items.length).toEqual(3); + expect(items).toHaveLength(3); }); test("DupeCheckAdd boolean", () => { @@ -51,6 +51,6 @@ describe("Array Functions", () => { DupeCheckAdd(items, true); DupeCheckAdd(items, false); - expect(items.length).toEqual(2); + expect(items).toHaveLength(2); }); });