mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-24 16:31:06 +01:00
10 lines
450 B
TypeScript
10 lines
450 B
TypeScript
import { test } from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { componentsFor, containerfile } from "../src/worker/environment.ts";
|
|
|
|
test("a Rust build image gets rustfmt and clippy, which the stock image's minimal profile leaves out", () => {
|
|
const f = containerfile("rust:1-bookworm", [], componentsFor("rust-stable"));
|
|
assert.match(f, /^RUN rustup component add clippy rustfmt$/m);
|
|
assert.doesNotMatch(f, /apt-get/);
|
|
});
|