Skip to content

Commit

Permalink
refactor: move NUTs to NUT dir
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Apr 3, 2024
1 parent c7b2eb0 commit dd224bc
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 233 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { strict as assert } from 'node:assert';
import { TestSession, execCmd } from '@salesforce/cli-plugins-testkit';
import { expect } from 'chai';
import { RequestStatus } from '@salesforce/source-deploy-retrieve';
import { DeployResultJson } from '../../../../src/utils/types.js';
import { CachedOptions } from '../../../../src/utils/deploy.js';
import { DeployResultJson } from '../../../src/utils/types.js';
import { CachedOptions } from '../../../src/utils/deploy.js';

function readDeployCache(sessionDir: string): Record<string, CachedOptions> {
const contents = fs.readFileSync(path.join(sessionDir, '.sf', 'deploy-cache.json'), 'utf-8');
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import path from 'node:path';
import { SourceTestkit } from '@salesforce/source-testkit';
import { assert, config } from 'chai';
import { execCmd } from '@salesforce/cli-plugins-testkit';
import { DeployResultJson } from '../../../../src/utils/types.js';
import { DeployResultJson } from '../../../src/utils/types.js';

config.truncateThreshold = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { fileURLToPath } from 'node:url';
import { SourceTestkit } from '@salesforce/source-testkit';
import { assert, expect } from 'chai';
import { RequestStatus } from '@salesforce/source-deploy-retrieve';
import { DeployResultJson } from '../../../../src/utils/types.js';
import { DeployResultJson } from '../../../src/utils/types.js';

describe('[project deploy report] NUTs with metadata-dir', () => {
let testkit: SourceTestkit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { fileURLToPath } from 'node:url';
import { SourceTestkit } from '@salesforce/source-testkit';
import { assert, isObject } from '@salesforce/ts-types';
import { expect } from 'chai';
import { DeployResultJson } from '../../../../src/utils/types.js';
import { DeployResultJson } from '../../../src/utils/types.js';

describe('[project deploy report] NUTs with source-dir', () => {
let testkit: SourceTestkit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { strict as assert } from 'node:assert';
import { SourceTestkit } from '@salesforce/source-testkit';
import { expect } from 'chai';
import { RequestStatus } from '@salesforce/source-deploy-retrieve';
import { DeployResultJson } from '../../../../src/utils/types.js';
import { CachedOptions } from '../../../../src/utils/deploy.js';
import { DeployResultJson } from '../../../src/utils/types.js';
import { CachedOptions } from '../../../src/utils/deploy.js';

function readDeployCache(projectDir: string): Record<string, CachedOptions> {
// source-testkit doesn't expose the session, so we'll go up 1 level from the project to get to it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { SourceTestkit } from '@salesforce/source-testkit';
import { isObject } from '@salesforce/ts-types';
import { assert, expect } from 'chai';
import { execCmd } from '@salesforce/cli-plugins-testkit';
import { DeployResultJson } from '../../../../src/utils/types.js';
import { DeployResultJson } from '../../../src/utils/types.js';

describe('deploy metadata validate NUTs', () => {
let testkit: SourceTestkit;
Expand Down
225 changes: 0 additions & 225 deletions test/utils/output.test.ts

This file was deleted.

0 comments on commit dd224bc

Please sign in to comment.