:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(nodejs): anchor jest dev-folder ignore pattern to the repo root (#70789)
Harley Alexander1e7b36ebe0da
diff --git a/nodejs/jest.config.js b/nodejs/jest.config.jsindex 8392b1d1e181..ef14b3fbedf5 100644--- a/nodejs/jest.config.js+++ b/nodejs/jest.config.js@@ -21,8 +21,9 @@ module.exports = {'<rootDir>/.tmp/','<rootDir>/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub-sidecar/',],- // `dev/` folders hold dev-only benchmarks/scripts, never CI tests.- testPathIgnorePatterns: ['/node_modules/', '/dev/'],+ // `dev/` folders hold dev-only benchmarks/scripts, never CI tests. Anchored to rootDir:+ // an unanchored '/dev/' also matches checkout paths like ~/dev/posthog and ignores every test.+ testPathIgnorePatterns: ['/node_modules/', '<rootDir>/(src|tests)(/.*)?/dev/'],// NOTE: This should be kept in sync with tsconfig.jsonmoduleNameMapper: {diff --git a/nodejs/package.json b/nodejs/package.jsonindex e38d4748144b..7391c4c91433 100644--- a/nodejs/package.json+++ b/nodejs/package.json@@ -8,7 +8,7 @@"main": "dist/index.js","types": "dist/index.d.ts","scripts": {- "test": "SHARD_IDX=${SHARD_INDEX:-1}; SHARD_TOTAL=${SHARD_COUNT:-1}; echo $SHARD_IDX/$SHARD_TOTAL; jest --runInBand --forceExit --shard=$SHARD_IDX/$SHARD_TOTAL --testPathIgnorePatterns='postgres-parity|service-e2e|/dev/'",+ "test": "SHARD_IDX=${SHARD_INDEX:-1}; SHARD_TOTAL=${SHARD_COUNT:-1}; echo $SHARD_IDX/$SHARD_TOTAL; jest --runInBand --forceExit --shard=$SHARD_IDX/$SHARD_TOTAL --testPathIgnorePatterns='postgres-parity|service-e2e|<rootDir>/(src|tests)(/.*)?/dev/'","test:rust-ingestion-e2e": "jest --runInBand --forceExit --testPathPatterns='service-e2e/rust-ingestion-consumer.test.ts'","test:postgres-parity": "jest --runInBand --forceExit --testPathPatterns='postgres-parity'","start": "pnpm start:dev",