Skip to content

Commit e42f1dc

Browse files
committed
Skip deno tests for now
1 parent d20d0c5 commit e42f1dc

File tree

2 files changed

+30
-20
lines changed

2 files changed

+30
-20
lines changed

js/tests/languages/deno.test.ts

+20-20
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,65 @@ import { expect } from 'vitest'
22

33
import { sandboxTest } from '../setup'
44

5-
sandboxTest('js simple', async ({ sandbox }) => {
6-
const result = await sandbox.runCode('console.log("Hello, World!")', {language: "deno"})
5+
sandboxTest.skip('js simple', async ({ sandbox }) => {
6+
const result = await sandbox.runCode('console.log("Hello, World!")', { language: "deno" })
77

88
expect(result.logs.stdout.join().trim()).toEqual('Hello, World!')
99
})
1010

11-
sandboxTest('js import', async ({ sandbox }) => {
12-
const result = await sandbox.runCode('import isOdd from "npm:is-odd"\nisOdd(3)', {language: "deno"})
11+
sandboxTest.skip('js import', async ({ sandbox }) => {
12+
const result = await sandbox.runCode('import isOdd from "npm:is-odd"\nisOdd(3)', { language: "deno" })
1313

1414
expect(result.results[0].text).toEqual('true')
1515
})
1616

17-
sandboxTest('js top level await', async ({ sandbox }) => {
17+
sandboxTest.skip('js top level await', async ({ sandbox }) => {
1818
const result = await sandbox.runCode(`
1919
async function main() {
2020
return 'Hello, World!'
2121
}
22-
22+
2323
await main()
24-
`, {language: "deno"})
24+
`, { language: "deno" })
2525
expect(result.results[0].text).toEqual('Hello, World!')
2626
})
2727

28-
sandboxTest('js es6', async ({ sandbox }) => {
28+
sandboxTest.skip('js es6', async ({ sandbox }) => {
2929
const result = await sandbox.runCode(`
3030
const add = (x, y) => x + y;
31-
add(1, 2)`, {language: "deno"})
31+
add(1, 2)`, { language: "deno" })
3232
expect(result.results[0].text).toEqual('3')
3333
})
3434

3535

36-
sandboxTest('js context', async ({ sandbox }) => {
37-
await sandbox.runCode('const z = 1', {language: "deno"})
38-
const result = await sandbox.runCode('z', {language: "deno"})
36+
sandboxTest.skip('js context', async ({ sandbox }) => {
37+
await sandbox.runCode('const z = 1', { language: "deno" })
38+
const result = await sandbox.runCode('z', { language: "deno" })
3939
expect(result.results[0].text).toEqual('1')
4040
})
4141

42-
sandboxTest('js cwd', async ({ sandbox }) => {
43-
const result = await sandbox.runCode('process.cwd()', {language: "deno"})
42+
sandboxTest.skip('js cwd', async ({ sandbox }) => {
43+
const result = await sandbox.runCode('process.cwd()', { language: "deno" })
4444
expect(result.results[0].text).toEqual('/home/user')
4545

46-
const ctx = await sandbox.createCodeContext( {cwd: '/home', language: "deno"})
47-
const result2 = await sandbox.runCode('process.cwd()', {context: ctx})
46+
const ctx = await sandbox.createCodeContext({ cwd: '/home', language: "deno" })
47+
const result2 = await sandbox.runCode('process.cwd()', { context: ctx })
4848
expect(result2.results[0].text).toEqual('/home')
4949
})
5050

51-
sandboxTest('ts simple', async ({ sandbox }) => {
51+
sandboxTest.skip('ts simple', async ({ sandbox }) => {
5252
const result = await sandbox.runCode(`
5353
function subtract(x: number, y: number): number {
5454
return x - y;
5555
}
5656
5757
subtract(1, 2)
58-
`, {language: "deno"})
58+
`, { language: "deno" })
5959

6060
expect(result.results[0].text).toEqual('-1')
6161
})
6262

63-
sandboxTest('test display', async ({ sandbox }) => {
63+
sandboxTest.skip('test display', async ({ sandbox }) => {
6464
const result = await sandbox.runCode(`
6565
{
6666
[Symbol.for("Jupyter.display")]() {
@@ -73,7 +73,7 @@ sandboxTest('test display', async ({ sandbox }) => {
7373
}
7474
}
7575
}
76-
`, {language: "deno"})
76+
`, { language: "deno" })
7777

7878
expect(result.results[0].html).toBe('<h1>Hello world!</h1>')
7979
expect(result.results[0].text).toBe('Hello world!')

python/tests/languages/test_deno.py

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import pytest
2+
13
from e2b_code_interpreter import AsyncSandbox
24

35

6+
@pytest.mark.skip(reason="Deno is not supported yet")
47
async def test_javascript(async_sandbox: AsyncSandbox):
58
code = """
69
console.log('Hello, World!')
@@ -9,6 +12,7 @@ async def test_javascript(async_sandbox: AsyncSandbox):
912
assert execution.logs.stdout == ["Hello, World!\n"]
1013

1114

15+
@pytest.mark.skip(reason="Deno is not supported yet")
1216
async def test_import(async_sandbox: AsyncSandbox):
1317
code = """
1418
import isOdd from 'npm:is-odd'
@@ -18,6 +22,7 @@ async def test_import(async_sandbox: AsyncSandbox):
1822
assert execution.results[0].text == "true"
1923

2024

25+
@pytest.mark.skip(reason="Deno is not supported yet")
2126
async def test_toplevel_await(async_sandbox: AsyncSandbox):
2227
code = """
2328
async function main() {
@@ -30,6 +35,7 @@ async def test_toplevel_await(async_sandbox: AsyncSandbox):
3035
assert execution.results[0].text == "Hello, World!"
3136

3237

38+
@pytest.mark.skip(reason="Deno is not supported yet")
3339
async def test_es6(async_sandbox: AsyncSandbox):
3440
code = """
3541
const add = (x, y) => x + y;
@@ -39,12 +45,14 @@ async def test_es6(async_sandbox: AsyncSandbox):
3945
assert execution.results[0].text == "3"
4046

4147

48+
@pytest.mark.skip(reason="Deno is not supported yet")
4249
async def test_context(async_sandbox: AsyncSandbox):
4350
await async_sandbox.run_code("const x = 1", language="deno")
4451
execution = await async_sandbox.run_code("x", language="deno")
4552
assert execution.results[0].text == "1"
4653

4754

55+
@pytest.mark.skip(reason="Deno is not supported yet")
4856
async def test_cwd(async_sandbox: AsyncSandbox):
4957
execution = await async_sandbox.run_code("process.cwd()", language="deno")
5058
assert execution.results[0].text == "/home/user"
@@ -54,6 +62,7 @@ async def test_cwd(async_sandbox: AsyncSandbox):
5462
assert execution.results[0].text == "/home"
5563

5664

65+
@pytest.mark.skip(reason="Deno is not supported yet")
5766
async def test_typescript(async_sandbox: AsyncSandbox):
5867
execution = await async_sandbox.run_code(
5968
"""
@@ -68,6 +77,7 @@ async def test_typescript(async_sandbox: AsyncSandbox):
6877
assert execution.results[0].text == "-1"
6978

7079

80+
@pytest.mark.skip(reason="Deno is not supported yet")
7181
async def test_display(async_sandbox: AsyncSandbox):
7282
code = """
7383
{

0 commit comments

Comments
 (0)