{"library":"wesl-test","type":"library","category":null,"description":"GPU shader testing library for WGSL and WESL, version 0.6.46. Provides testCompute, testFragment, testFragmentImage, and expectFragmentImage to unit-test compute and fragment shaders directly from Node.js test frameworks like vitest. Supports visual regression testing via image snapshots. Designed to fill the gap in WebGPU testing tooling, akin to Jest snapshot testing for shaders. Ships TypeScript types. Peer dependencies on vitest ^3.2.4 and vitest-image-snapshot ^0.6.37. Active development with monthly releases.","language":"javascript","status":"active","version":"0.6.46","tags":["javascript","shader","snapshot","test","testing","unit-test","visual-regression","WebGPU","WESL","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install wesl-test","imports":["import { testCompute } from 'wesl-test'","import { getGPUDevice } from 'wesl-test'","import { expectFragmentImage, imageMatcher } from 'wesl-test'"]},{"cmd":"yarn add wesl-test","imports":[]},{"cmd":"pnpm add wesl-test","imports":[]}],"homepage":"https://github.com/wgsl-tooling-wg/wesl-js#readme","github":"https://github.com/wgsl-tooling-wg/wesl-js","docs":null,"changelog":null,"pypi":null,"npm":"wesl-test","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}