@brisberg/screeps-test-server
v0.2.1
Published
Screeps Private Server in a custom test environment. Suitable for unit/integration testing Screeps Server Mod configurations and user scripts.
Downloads
3
Readme
screeps-test-server
Screeps Private Server in a custom test environment. Suitable for unit/integration testing Screeps Server Mod configurations and user scripts.
Wrapper around Screeps Private Server. Launches a real private server using screeps/launcher. Launches a custom screeps/common process and connects to the storage process.
Manages a test server environment. Copies in a clean initial db.json, assets directory, links in a STEAM_API_KEY if one is provided, uses mods.json if one is provided.
Returns a handle to the custom common/storage process for use with Pubsub, Env, and Db direct mutations.
Actions
yarn build
- Builds the package, emitting .js and .d.ts filesyarn lint
- Runs lint over the project sourceyarn test
- Runs all tests under the src/ directoryyarn publish
- Bumps package version and publishes the package to Github Packages
Toolchain
Uses @brisberg/typescript-pkg as a template for Toolchain configuration.
See that repo for a list of tools, documentation, and upgrade steps.