test: skip tests that modify env in non-default mode (#15725)

This commit is contained in:
Dmitry Gozman 2022-07-15 13:06:19 -07:00 committed by GitHub
parent a56d801352
commit b637ce1250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -639,6 +639,7 @@ test.describe('should emit page-level network events with service worker fetch h
});
test.describe('PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1', () => {
test.skip(({ mode }) => mode !== 'default', 'Cannot set env variables in non-default');
test.beforeAll(() => process.env.PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS = '1');
test.afterAll(() => delete process.env.PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS);