# test.build/core/adapters/surface.adapter.test.ts

> 11 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-build-core-adapters-surface-adapter-test-ts
Source text: https://banes-lab.com/source/testing/test.build/core/adapters/surface.adapter.test.ts.txt

Listed in [test.build/core/adapters](https://banes-lab.com/api/source/testing/test.build/core/adapters.md), after [test.build/core/adapters/server.adapter.test.ts](https://banes-lab.com/source/testing/test.build/core/adapters/server.adapter.test.ts.md).

## Contained in

- [test.build/core/adapters](https://banes-lab.com/anatomy/testing/folder-testing-test-build-core-adapters.md)

## Source

```typescript
import { describe, expect, it } from "vitest";
import { ScenarioPlayer } from "@banes-lab/build-scripts/core/adapters/surface.adapter.ts";
import { join } from "node:path";
import { mkdtempSync } from "node:fs";
import { tmpdir } from "node:os";

describe("ScenarioPlayer", () => {
    it("stops the recording with a surfaces finding when the install holds no package to drive", async () => {
        const install = mkdtempSync(join(tmpdir(), "banes-lab-scenario-"));
        await expect(new ScenarioPlayer(install, new Map()).play()).rejects.toThrow("surfaces: ");
    }, 60_000);
});
```
