Skip to content

Commit 7f928d8

Browse files
committed
fix: remove dotenv dependency from NUT test to avoid dependency conflicts
- Removed dotenv import and config() call from componentLocalPreview.nut.ts - Using process.env directly instead of dotenv.config() - This avoids the mocha/cliui dependency conflict that was preventing CI tests - Now we can test if NUT test files cause @lwrjs/api issues without package.json changes
1 parent e550f74 commit 7f928d8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"@types/node-fetch": "^2.6.12",
3232
"@types/xml2js": "^0.4.14",
3333
"@typescript-eslint/eslint-plugin": "^6.21.0",
34-
"dotenv": "^16.5.0",
3534
"eslint": "^8.57.0",
3635
"eslint-config-prettier": "^9.1.0",
3736
"eslint-plugin-header": "^3.1.1",

test/commands/lightning/dev/componentLocalPreview.nut.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ import path from 'node:path';
99
import fs from 'node:fs';
1010
import { expect } from 'chai';
1111
import { TestSession } from '@salesforce/cli-plugins-testkit';
12-
import * as dotenv from 'dotenv';
1312
import axios from 'axios';
1413
import { toKebabCase } from './helpers/utils.js';
1514
import { createSfdxProject, createLwcComponent } from './helpers/projectSetup.js';
1615
import { startLightningDevServer } from './helpers/devServerUtils.js';
1716

18-
dotenv.config();
17+
// Note: dotenv not available, using process.env directly
1918

2019
const INSTANCE_URL = process.env.TESTKIT_HUB_INSTANCE;
2120
const TEST_TIMEOUT_MS = 60_000;

0 commit comments

Comments
 (0)