Const// Use as before stage transformer with custom config in vitest.config.mts
import typescript from '@rollup/plugin-typescript'
import { defineConfig } from 'vitest/config'
import { puyaTsTransformer } from '@algorandfoundation/algorand-typescript-testing/vitest-transformer'
export default defineConfig({
esbuild: {},
plugins: [
typescript({
tsconfig: './tsconfig.json',
transformers: {
before: [puyaTsTransformer],
},
}),
],
})
TypeScript transformer for Algorand TypeScript smart contracts and testing files which is mainly responsilbe for swapping in stub implementations of op codes, and capturing TypeScript type information for the Node.js runtime.