mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-02-04 19:29:06 +08:00
Unity builder v4 Parity Update (#246)
- Updated activation strategy to align with builder strategy for more stable activation with retry logic - Added `containerRegistryImageVersion` and `containerRegistryRepository` for improved custom image support - Added `runAsHostUser` to fix self-hosted runner issues - Scripts folder cleanup - Added error/warning annotations for activation issues - Improved serial masking - Image environment factory addition and docker refactoring
This commit is contained in:
@@ -7,6 +7,19 @@ const mockedFsExistsSync = jest.spyOn(fs, 'existsSync');
|
||||
const mockedFsReadFileSync = jest.spyOn(fs, 'readFileSync');
|
||||
|
||||
describe('Input', () => {
|
||||
let originalEnvironment;
|
||||
|
||||
beforeEach(() => {
|
||||
// Store original process.env
|
||||
originalEnvironment = process.env;
|
||||
process.env['UNITY_SERIAL'] = 'F4-1234-1234-1234';
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
// Restore original process.env
|
||||
process.env = originalEnvironment;
|
||||
});
|
||||
|
||||
describe('getFromUser', () => {
|
||||
it('does not throw', () => {
|
||||
expect(() => Input.getFromUser()).not.toThrow();
|
||||
|
||||
Reference in New Issue
Block a user