• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:exit +full:- +full:code

9   '--no-warnings',
10 '--input-type=module',
11 '--eval',
15 it('should exit for an unsettled TLA promise via --eval', async () => {
16 const { code, stderr, stdout } = await spawnPromisified(execPath, [
23 assert.strictEqual(code, 13);
26 it('should throw for a rejected TLA promise via --eval', async () => {
27 // Rejected TLA promise, --eval
28 const { code, stderr, stdout } = await spawnPromisified(execPath, [
35 assert.strictEqual(code, 1);
38 …it('should exit for an unsettled TLA promise and respect explicit exit code via --eval', async () …
39 // Rejected TLA promise, --eval
40 const { code, stderr, stdout } = await spawnPromisified(execPath, [
47 assert.strictEqual(code, 42);
50 …it('should throw for a rejected TLA promise and ignore explicit exit code via --eval', async () =>…
51 // Rejected TLA promise, --eval
52 const { code, stderr, stdout } = await spawnPromisified(execPath, [
59 assert.strictEqual(code, 1);
62 it('should exit for an unsettled TLA promise via stdin', async () => {
63 const { code, stderr, stdout } = await spawnPromisified(execPath, [
64 '--no-warnings',
65 fixtures.path('es-modules/tla/unresolved.mjs'),
70 assert.strictEqual(code, 13);
74 const { code, stderr, stdout } = await spawnPromisified(execPath, [
75 '--no-warnings',
76 fixtures.path('es-modules/tla/rejected.mjs'),
81 assert.strictEqual(code, 1);
84 …it('should exit for an unsettled TLA promise and respect explicit exit code via stdin', async () =…
85 const { code, stderr, stdout } = await spawnPromisified(execPath, [
86 '--no-warnings',
87 fixtures.path('es-modules/tla/unresolved-withexitcode.mjs'),
92 assert.strictEqual(code, 42);
95 …it('should throw for a rejected TLA promise and ignore explicit exit code via stdin', async () => {
96 const { code, stderr, stdout } = await spawnPromisified(execPath, [
97 '--no-warnings',
98 fixtures.path('es-modules/tla/rejected-withexitcode.mjs'),
103 assert.strictEqual(code, 1);
106 it('should exit successfully when calling `process.exit()` in `.mjs` file', async () => {
107 const { code, stderr, stdout } = await spawnPromisified(execPath, [
108 '--no-warnings',
109 fixtures.path('es-modules/tla/process-exit.mjs'),
114 assert.strictEqual(code, 0);
117 it('should be unaffected by `process.exit()` in worker thread', async () => {
118 const { code, stderr, stdout } = await spawnPromisified(execPath, [
119 '--no-warnings',
120 fixtures.path('es-modules/tla/unresolved-with-worker-process-exit.mjs'),
125 assert.strictEqual(code, 13);