refactor: Enable import/order for design-system, workflow and @n8n packages (#10847)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Command } from '@oclif/core';
|
||||
import { ScenarioLoader } from '@/scenario/scenario-loader';
|
||||
|
||||
import { testScenariosPath } from '@/config/common-flags';
|
||||
import { ScenarioLoader } from '@/scenario/scenario-loader';
|
||||
|
||||
export default class ListCommand extends Command {
|
||||
static description = 'List all available scenarios';
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { Command, Flags } from '@oclif/core';
|
||||
import { ScenarioLoader } from '@/scenario/scenario-loader';
|
||||
import { ScenarioRunner } from '@/test-execution/scenario-runner';
|
||||
|
||||
import { testScenariosPath } from '@/config/common-flags';
|
||||
import { N8nApiClient } from '@/n8n-api-client/n8n-api-client';
|
||||
import { ScenarioDataFileLoader } from '@/scenario/scenario-data-loader';
|
||||
import { ScenarioLoader } from '@/scenario/scenario-loader';
|
||||
import type { K6Tag } from '@/test-execution/k6-executor';
|
||||
import { K6Executor } from '@/test-execution/k6-executor';
|
||||
import { testScenariosPath } from '@/config/common-flags';
|
||||
import { ScenarioRunner } from '@/test-execution/scenario-runner';
|
||||
|
||||
export default class RunCommand extends Command {
|
||||
static description = 'Run all (default) or specified test scenarios';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { AxiosRequestConfig } from 'axios';
|
||||
|
||||
import { N8nApiClient } from './n8n-api-client';
|
||||
|
||||
export class AuthenticatedN8nApiClient extends N8nApiClient {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { AuthenticatedN8nApiClient } from './authenticated-n8n-api-client';
|
||||
import type { Workflow } from '@/n8n-api-client/n8n-api-client.types';
|
||||
|
||||
import type { AuthenticatedN8nApiClient } from './authenticated-n8n-api-client';
|
||||
|
||||
export class WorkflowApiClient {
|
||||
constructor(private readonly apiClient: AuthenticatedN8nApiClient) {}
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import * as fs from 'node:fs';
|
||||
import * as path from 'node:path';
|
||||
import type { Scenario } from '@/types/scenario';
|
||||
|
||||
import type { Workflow } from '@/n8n-api-client/n8n-api-client.types';
|
||||
import type { Scenario } from '@/types/scenario';
|
||||
|
||||
/**
|
||||
* Loads scenario data files from FS
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { createHash } from 'node:crypto';
|
||||
import * as fs from 'node:fs';
|
||||
import * as path from 'path';
|
||||
import { createHash } from 'node:crypto';
|
||||
|
||||
import type { Scenario, ScenarioManifest } from '@/types/scenario';
|
||||
|
||||
export class ScenarioLoader {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import assert from 'node:assert/strict';
|
||||
import path from 'path';
|
||||
import { $, which, tmpfile } from 'zx';
|
||||
import type { Scenario } from '@/types/scenario';
|
||||
|
||||
import { buildTestReport, type K6Tag } from '@/test-execution/test-report';
|
||||
import type { Scenario } from '@/types/scenario';
|
||||
export type { K6Tag };
|
||||
|
||||
export type K6ExecutorOpts = {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import type { K6Executor } from './k6-executor';
|
||||
import type { Scenario } from '@/types/scenario';
|
||||
import { AuthenticatedN8nApiClient } from '@/n8n-api-client/authenticated-n8n-api-client';
|
||||
import type { N8nApiClient } from '@/n8n-api-client/n8n-api-client';
|
||||
import type { ScenarioDataFileLoader } from '@/scenario/scenario-data-loader';
|
||||
import { ScenarioDataImporter } from '@/test-execution/scenario-data-importer';
|
||||
import { AuthenticatedN8nApiClient } from '@/n8n-api-client/authenticated-n8n-api-client';
|
||||
import type { Scenario } from '@/types/scenario';
|
||||
|
||||
import type { K6Executor } from './k6-executor';
|
||||
|
||||
/**
|
||||
* Runs scenarios
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
import type { Scenario } from '@/types/scenario';
|
||||
|
||||
export type K6Tag = {
|
||||
|
||||
Reference in New Issue
Block a user