Skip to content

Commit

Permalink
Move integration test to its directory
Browse files Browse the repository at this point in the history
  • Loading branch information
uurien committed Jan 15, 2025
1 parent 2552fb3 commit 7b42e04
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { createSandbox, spawnProc, FakeAgent } = require('../../../../../integration-tests/helpers')
const { createSandbox, spawnProc, FakeAgent } = require('../helpers')
const path = require('path')
const getPort = require('get-port')
const Axios = require('axios')
Expand All @@ -11,11 +11,10 @@ describe('ESM', () => {

before(async function () {
this.timeout(process.platform === 'win32' ? 90000 : 30000)
sandbox = await createSandbox([`'express'`], false,
[path.join(__dirname, 'resources')])
sandbox = await createSandbox([`'express'`])

Check failure on line 14 in integration-tests/appsec/iast.esm.spec.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
appPort = await getPort()
cwd = sandbox.folder
appFile = path.join(cwd, 'resources','esm-app', 'index.mjs')
appFile = path.join(cwd, 'appsec','esm-app', 'index.mjs')

Check failure on line 17 in integration-tests/appsec/iast.esm.spec.js

View workflow job for this annotation

GitHub Actions / lint

Multiple spaces found before ''appsec''

Check failure on line 17 in integration-tests/appsec/iast.esm.spec.js

View workflow job for this annotation

GitHub Actions / lint

A space is required after ','

axios = Axios.create({
baseURL: `http://localhost:${appPort}`
Expand Down

0 comments on commit 7b42e04

Please sign in to comment.