playwright/packages/playwright-test/src/common
Andrey Lushnikov 3b2d247c74
fix: avoid using os.userInfo() (#22826)
The `os.userInfo()` call might throw on POSIX if there is no
user info for the current `uid`. This might happen, if the docker
is launched like this:

```
docker run --rm -u 1234:1234  -it mcr.microsoft.com/playwright:v1.32.0 node -e 'console.log(os.userInfo().username)'
```

So instead of using `os.userInfo()`, rely on effective user id.

Fixes https://github.com/microsoft/playwright/issues/22721
2023-05-10 05:13:04 -07:00
..
babelBundle.ts chore: only transpile tsx for components (#22504) 2023-04-19 14:20:53 -07:00
compilationCache.ts fix: avoid using os.userInfo() (#22826) 2023-05-10 05:13:04 -07:00
config.ts fix(deps): --repeat-each should not apply to dependencies (#22858) 2023-05-05 16:59:39 -07:00
configLoader.ts feat: project.teardown that runs after all dependents have finished (#22696) 2023-04-28 14:27:08 -07:00
DEPS.list chore: move testInfo and timeoutManager to worker/ (#20803) 2023-02-09 19:22:17 -08:00
expectBundle.ts chore: group test runner files by process (#20425) 2023-01-26 17:26:47 -08:00
fixtures.ts chore: inside out the config & project internal (#22260) 2023-04-07 09:54:01 -07:00
globals.ts chore: make _setupArtifacts a worker-scoped fixture (#22739) 2023-05-01 13:53:15 -07:00
ipc.ts chore: comma separated reporter names, reporter arg from config (#22693) 2023-04-27 15:16:18 -07:00
poolBuilder.ts chore: inside out the config & project internal (#22260) 2023-04-07 09:54:01 -07:00
process.ts chore: inside out the config & project internal (#22260) 2023-04-07 09:54:01 -07:00
suiteUtils.ts chore: inside out the config & project internal (#22260) 2023-04-07 09:54:01 -07:00
test.ts chore: remove FullProjectInternal.from (#22280) 2023-04-07 19:12:20 -07:00
testLoader.ts chore: collect test dependencies (#20645) 2023-02-06 14:52:40 -08:00
testType.ts chore: separate concerns of testinfo helpers (#22491) 2023-04-19 17:31:07 -07:00
transform.ts feat(typescript): align with --moduleResolution=bundler (#22887) 2023-05-09 16:26:29 -07:00