Skip to content

Commit

Permalink
refactor: optimize test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ComradeVanti committed Oct 25, 2023
1 parent 5f44032 commit 22464a0
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 39 deletions.
8 changes: 3 additions & 5 deletions test/test-cmd-add.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
import assert from "assert";
import "assert";
import nock from "nock";
import should from "should";
import { loadManifest, parseEnv } from "../lib/core";
import "should";
import { loadManifest } from "../lib/core";

import { add } from "../lib/cmd-add";

Expand Down
7 changes: 2 additions & 5 deletions test/test-cmd-deps.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
import assert from "assert";
import "assert";
import nock from "nock";
import should from "should";
import { loadManifest, parseEnv } from "../lib/core";
import "should";

import { deps } from "../lib/cmd-deps";

Expand Down
6 changes: 2 additions & 4 deletions test/test-cmd-login.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
import assert from "assert";
import nock from "nock";
import "assert";
import "nock";
import should from "should";
import {
generateNpmrcLines,
Expand Down
8 changes: 3 additions & 5 deletions test/test-cmd-remove.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
import assert from "assert";
import should from "should";
import { loadManifest, parseEnv } from "../lib/core";
import "assert";
import "should";
import { loadManifest } from "../lib/core";

import { remove } from "../lib/cmd-remove";

Expand Down
6 changes: 2 additions & 4 deletions test/test-cmd-search.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
import assert from "assert";
import "assert";
import nock from "nock";
import should from "should";
import "should";
import { search } from "../lib/cmd-search";

import {
Expand Down
7 changes: 2 additions & 5 deletions test/test-cmd-view.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
import assert from "assert";
import "assert";
import nock from "nock";
import should from "should";
import { loadManifest, parseEnv } from "../lib/core";
import "should";

import { view } from "../lib/cmd-view";

Expand Down
6 changes: 2 additions & 4 deletions test/test-core.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
import assert from "assert";
import "assert";
import fs from "fs";
import nock from "nock";
import path from "path";
import should from "should";
import "should";
import {
compareEditorVersion,
env,
Expand Down
9 changes: 2 additions & 7 deletions test/test-pkg-name.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
import assert from "assert";
import fs from "fs";
import nock from "nock";
import path from "path";
import should from "should";
import "assert";
import "should";
import { splitPkgName } from "../lib/utils/pkg-name";

describe("pkg-name.ts", function () {
Expand Down

0 comments on commit 22464a0

Please sign in to comment.