<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/pack-test](./pack-test.md) &gt; [testPack](./pack-test.testpack.md)

## testPack() function

Verify that the published contents of your node package will pass a basic smoke test.

**Signature:**

```typescript
export declare function testPack(moduleName: string): Promise<void>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

moduleName


</td><td>

string


</td><td>


</td></tr>
</tbody></table>

**Returns:**

Promise&lt;void&gt;

## Example


```sh
node --test
```

```js
// test/pack.test.mjs
import { testPack } from '@csstools/pack-test';

await testPack("your-module-name");
```

