We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47bc389 commit 695acbcCopy full SHA for 695acbc
packages/nx-plugin/src/executors/cli/executor.int.test.ts
@@ -53,4 +53,28 @@ describe('runAutorunExecutor', () => {
53
},
54
});
55
56
+
57
+ it('should execute command with provided env vars', async () => {
58
+ const output = await runAutorunExecutor(
59
+ {
60
+ verbose: true,
61
+ env: {
62
+ NODE_OPTIONS: '--import tsx',
63
+ TSX_TSCONFIG_PATH: 'tsconfig.base.json',
64
+ },
65
66
+ executorContext('utils'),
67
+ );
68
+ expect(output.success).toBe(true);
69
70
+ expect(executeProcessSpy).toHaveBeenCalledTimes(1);
71
+ expect(executeProcessSpy).toHaveBeenCalledWith(
72
+ expect.objectContaining({
73
74
75
76
77
+ }),
78
79
+ });
80
0 commit comments