# test.rules/shared/strings/manifest.strings.test.ts

> 9 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-rules-shared-strings-manifest-strings-test-ts
Source text: https://banes-lab.com/source/testing/test.rules/shared/strings/manifest.strings.test.ts.txt

Listed in [test.rules/shared/strings](https://banes-lab.com/api/source/testing/test.rules/shared/strings.md), after [test.rules/shared/strings/graph.strings.test.ts](https://banes-lab.com/source/testing/test.rules/shared/strings/graph.strings.test.ts.md) and before [test.rules/shared/strings/rule.strings.test.ts](https://banes-lab.com/source/testing/test.rules/shared/strings/rule.strings.test.ts.md).

## Contained in

- [test.rules/shared/strings](https://banes-lab.com/anatomy/testing/folder-testing-test-rules-shared-strings.md)

## Source

```typescript
import { describe, expect, it } from "vitest";
import { noPackageName, notJsonObject, notValidJson } from "@ssot/govlab/shared/strings/manifest.strings.ts";

describe("the manifest reader errors", () => {
    it("name the file each refusal is about", () => {
        expect(notValidJson("a/package.json")).toContain("a/package.json is not valid JSON");
        expect(notJsonObject("a/package.json")).toContain("a/package.json does not hold a JSON object");
        expect(noPackageName("a")).toContain("a declares no package name");
    });
});
```
