mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00

* Enable noImplicitAny Add types to all implicit any variables Bump target to ES2020 for recent language features (optional chaining) Code cleanup Add debug configuration for vscode Remove autorun flag from jest to remove warning Bump packages to fix dependency version mismatch warning Changed @arkweid/lefthook to @evilmartians/lefthook as @arkweid/lefthook has been deprecated in favor of @evilmartians/lefthook Added concurrency groups to integrity check and build workflows. New commits to branches will cancel superseded runs on the same branch/pr Update imports to not use require syntax Use node packages (ie node:fs rather than fs) AndroidVersionCode is now a string rather than a number as it gets converted to a string when passed out of the system Reduce timeout for windows builds Remove 2020.1.17f1 from windows builds due to repeated license activation errors Update naming scheme of workflows for consistency Update build names so target platform and unity version aren't cut off by github actions UI * Add exclude to test matrix for 2022.2 on android until Unity bug is fixed --------- Co-authored-by: AndrewKahr <AndrewKahr@users.noreply.github.com>
31 lines
1.0 KiB
JavaScript
31 lines
1.0 KiB
JavaScript
module.exports = {
|
|
// Automatically clear mock calls and instances between every test
|
|
clearMocks: true,
|
|
|
|
// An array of file extensions your modules use
|
|
moduleFileExtensions: ['js', 'ts'],
|
|
|
|
// The test environment that will be used for testing
|
|
testEnvironment: 'node',
|
|
|
|
// The glob patterns Jest uses to detect test files
|
|
testMatch: ['**/*.test.ts'],
|
|
|
|
// This option allows use of a custom test runner
|
|
testRunner: 'jest-circus/runner',
|
|
|
|
// A map with regular expressions for transformers to paths
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest',
|
|
},
|
|
|
|
// Indicates whether each individual test should be reported during the run
|
|
verbose: true,
|
|
|
|
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
|
|
modulePathIgnorePatterns: ['<rootDir>/lib/', '<rootDir>/dist/'],
|
|
|
|
// A list of paths to modules that run some code to configure or set up the testing framework before each test
|
|
setupFilesAfterEnv: ['<rootDir>/src/jest.setup.ts'],
|
|
};
|