diff --git a/packages/dd-trace/test/appsec/iast/resources/esm-app/custom-noop-hooks.mjs b/integration-tests/appsec/esm-app/custom-noop-hooks.mjs similarity index 100% rename from packages/dd-trace/test/appsec/iast/resources/esm-app/custom-noop-hooks.mjs rename to integration-tests/appsec/esm-app/custom-noop-hooks.mjs diff --git a/packages/dd-trace/test/appsec/iast/resources/esm-app/index.mjs b/integration-tests/appsec/esm-app/index.mjs similarity index 100% rename from packages/dd-trace/test/appsec/iast/resources/esm-app/index.mjs rename to integration-tests/appsec/esm-app/index.mjs diff --git a/packages/dd-trace/test/appsec/iast/resources/esm-app/more.mjs b/integration-tests/appsec/esm-app/more.mjs similarity index 100% rename from packages/dd-trace/test/appsec/iast/resources/esm-app/more.mjs rename to integration-tests/appsec/esm-app/more.mjs diff --git a/packages/dd-trace/test/appsec/iast/resources/esm-app/worker-dep.mjs b/integration-tests/appsec/esm-app/worker-dep.mjs similarity index 100% rename from packages/dd-trace/test/appsec/iast/resources/esm-app/worker-dep.mjs rename to integration-tests/appsec/esm-app/worker-dep.mjs diff --git a/packages/dd-trace/test/appsec/iast/resources/esm-app/worker.mjs b/integration-tests/appsec/esm-app/worker.mjs similarity index 100% rename from packages/dd-trace/test/appsec/iast/resources/esm-app/worker.mjs rename to integration-tests/appsec/esm-app/worker.mjs diff --git a/packages/dd-trace/test/appsec/iast/index.esm.spec.js b/integration-tests/appsec/iast.esm.spec.js similarity index 91% rename from packages/dd-trace/test/appsec/iast/index.esm.spec.js rename to integration-tests/appsec/iast.esm.spec.js index 5c563b89276..3b4cba859fb 100644 --- a/packages/dd-trace/test/appsec/iast/index.esm.spec.js +++ b/integration-tests/appsec/iast.esm.spec.js @@ -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') @@ -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'`]) appPort = await getPort() cwd = sandbox.folder - appFile = path.join(cwd, 'resources','esm-app', 'index.mjs') + appFile = path.join(cwd, 'appsec','esm-app', 'index.mjs') axios = Axios.create({ baseURL: `http://localhost:${appPort}`