A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
import { defineConfig } from 'vitest/config';
/**
* Stated rather than inferred. Vitest walks UP from its cwd for a config, so a
* package without one runs on whatever it finds above — a root config once
* pointed these at the engine's include list and left them with no test files,
* passing by having nothing to run.
*/
export default defineConfig({
test: {
include: ['tests/**/*.test.ts'],
environment: 'node',
// Cook and export shell out and touch temp directories.
testTimeout: 30_000,
hookTimeout: 30_000,
// The native AOT build needs a C compiler; a run without one must declare
// it rather than skip. See globalSetup.ts.
globalSetup: ['tests/globalSetup.ts'],
// The web export bundles the SDK it is given, and most of these tests hand it a stub tree that is not a bundle. They exercise the
// copied tree; the tree-shaken package is built from the real SDK in export-web-bundle.test.ts.
env: { ESTELLA_WEB_BUNDLE_ENGINE: '0' },
},
});