Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/plugins/apps/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export const LOCAL_EXECUTION_LOAD_SUFFIX = '?dd-local-exec';
export const BACKEND_FILE_WITH_QUERY_RE = new RegExp(
`${BACKEND_FILE_RE.source.slice(0, -1)}(\\?.*)?$`,
);

/** Vite's `--mode` for `npm run dev:verify`; read via `server.config.mode` since `import.meta.env.MODE` breaks Jest's CommonJS transform. */
export const DEV_VERIFY_MODE = 'dev-verify';

export const BACKEND_CODE_EXTENSIONS = [
'.ts',
'.tsx',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ describe('Dev Server Middleware — real end-to-end local execution', () => {
mockLongPolling,
FIXTURE_ROOT,
getMockLogger(),
'development',
);

const req = createMockRequest('/__dd/executeAction', {
Expand Down Expand Up @@ -239,6 +240,7 @@ describe('Dev Server Middleware — real end-to-end local execution', () => {
mockLongPolling,
FIXTURE_ROOT,
getMockLogger(),
'development',
);

const req = createMockRequest('/__dd/executeAction', {
Expand Down Expand Up @@ -275,6 +277,7 @@ describe('Dev Server Middleware — real end-to-end local execution', () => {
mockLongPolling,
FIXTURE_ROOT,
getMockLogger(),
'development',
);

const req = createMockRequest('/__dd/executeAction', {
Expand Down Expand Up @@ -345,6 +348,7 @@ describe('Dev Server Middleware — real end-to-end local execution', () => {
mockLongPolling,
FIXTURE_ROOT,
getMockLogger(),
'development',
);

const req = createMockRequest('/__dd/executeAction', {
Expand Down Expand Up @@ -389,6 +393,7 @@ describe('Dev Server Middleware — real end-to-end local execution', () => {
mockLongPolling,
FIXTURE_ROOT,
getMockLogger(),
'development',
);

// The connection-ID collector is under test here, not the preview-async round trip
Expand Down Expand Up @@ -442,6 +447,7 @@ describe('Dev Server Middleware — real end-to-end local execution', () => {
mockLongPolling,
FIXTURE_ROOT,
getMockLogger(),
'development',
);

const apiScope = nock('https://api.datadoghq.com')
Expand Down
Loading
Loading