ava-typescript/test/snapshots/protocol-ava-8.js.md
Mark Wubben b31b242831 Implement AVA 8 protocol
- Always import() when loading
- Don't include .cts in default extensions
2026-04-16 21:38:08 +02:00

3.3 KiB

Snapshot report for test/protocol-ava-8.js

The actual snapshot is saved in protocol-ava-8.js.snap.

Generated by AVA.

main() config validation: throw when config is not a plain object

Snapshot 1

Error {
  message: 'Unexpected Typescript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

Snapshot 2

Error {
  message: 'Unexpected Typescript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

Snapshot 3

Error {
  message: 'Unexpected Typescript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

Snapshot 4

Error {
  message: 'Unexpected Typescript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

main() config validation: throw when config contains keys other than 'extensions', 'rewritePaths' or 'compile'

Snapshot 1

Error {
  message: 'Unexpected \'foo\' property in TypeScript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

main() config validation: throw when config.extensions contains empty strings

Snapshot 1

Error {
  message: 'Missing \'compile\' property in TypeScript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

main() config validation: throw when config.extensions contains non-strings

Snapshot 1

Error {
  message: 'Missing \'compile\' property in TypeScript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

main() config validation: throw when config.extensions contains duplicates

Snapshot 1

Error {
  message: 'Missing \'compile\' property in TypeScript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

main() config validation: config may not be an empty object

Snapshot 1

Error {
  message: 'Missing \'compile\' property in TypeScript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

main() config validation: throw when config.compile is invalid

Snapshot 1

Error {
  message: 'Invalid \'compile\' property in TypeScript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

Snapshot 2

Error {
  message: 'Invalid \'compile\' property in TypeScript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

main() config validation: rewrite paths must end in a /

Snapshot 1

Error {
  message: 'Missing \'compile\' property in TypeScript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

Snapshot 2

Error {
  message: 'Missing \'compile\' property in TypeScript configuration for AVA. See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md',
}

main() updateGlobs()

Snapshot 1

{
  filePatterns: [
    'src/test.ts',
    '!**/*.d.ts',
    '!build/**',
  ],
  ignoredByWatcherPatterns: [
    'assets/**',
    'build/**/*.js.map',
    'build/**/*.cjs.map',
    'build/**/*.mjs.map',
  ],
}