codeceptjs 4.0.0-beta.17 → 4.0.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,6 +25,9 @@ export async function transpileTypeScript(mainFilePath, typescript) {
25
25
  target: 99, // ScriptTarget.ESNext
26
26
  esModuleInterop: true,
27
27
  allowSyntheticDefaultImports: true,
28
+ lib: ['lib.esnext.d.ts'], // Enable latest features including top-level await
29
+ suppressOutputPathCheck: true,
30
+ skipLibCheck: true,
28
31
  })
29
32
 
30
33
  // Check if the code uses CommonJS globals
@@ -57,6 +60,7 @@ const require = (id) => {
57
60
  const hasKnownExt = ext && __knownExts.includes(ext.toLowerCase());
58
61
  if (!hasKnownExt) {
59
62
  // Try common extensions in order: .js, .cjs, .json, .node
63
+ // Note: .ts files cannot be required - they need transpilation first
60
64
  const extensions = ['.js', '.cjs', '.json', '.node'];
61
65
  for (const testExt of extensions) {
62
66
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "4.0.0-beta.17",
3
+ "version": "4.0.0-beta.18",
4
4
  "type": "module",
5
5
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
6
6
  "keywords": [