test: fix tests on Windows #17
Annotations
2 errors and 1 warning
Testing:
src/lib/ExportsProcessor.test.ts#L130
AssertionError: expected [ { moduleName: 'demo', …(8) }, …(10) ] to deeply equal [ { type: 'commonjs', …(8) }, …(10) ]
- Expected
+ Received
Array [
Object {
"condition": "types",
"directory": "D:\\tmp\\dist\\types",
"fileName": "index.d.ts",
"itemPath": Array [
"exports",
".",
"types",
],
"moduleName": "demo",
- "relativePath": "dist\\types/index.d.ts",
+ "relativePath": "dist\\types\\index.d.ts",
"resolvedPath": "D:\\tmp\\dist\\types\\index.d.ts",
"subpath": ".",
"type": "commonjs",
},
Object {
"condition": "require",
"directory": "D:\\tmp\\dist\\cjs",
"fileName": "index.js",
"itemPath": Array [
"exports",
".",
"require",
],
"moduleName": "demo",
- "relativePath": "dist\\cjs/index.js",
+ "relativePath": "dist\\cjs\\index.js",
"resolvedPath": "D:\\tmp\\dist\\cjs\\index.js",
"subpath": ".",
"type": "commonjs",
},
Object {
"condition": "import",
"directory": "D:\\tmp\\dist\\mjs",
"fileName": "index.js",
"itemPath": Array [
"exports",
".",
"import",
],
"moduleName": "demo",
- "relativePath": "dist\\mjs/index.js",
+ "relativePath": "dist\\mjs\\index.js",
"resolvedPath": "D:\\tmp\\dist\\mjs\\index.js",
"subpath": ".",
"type": "module",
},
Object {
"condition": "types",
"directory": "D:\\tmp\\dist\\types",
"fileName": "*.d.ts",
"itemPath": Array [
"exports",
"./*",
"types",
],
"moduleName": "demo/*",
- "relativePath": "dist\\types/*.d.ts",
+ "relativePath": "dist\\types\\*.d.ts",
"resolvedPath": "D:\\tmp\\dist\\types\\*.d.ts",
"subpath": "./*",
"type": "commonjs",
},
Object {
"condition": "require",
"directory": "D:\\tmp\\dist\\cjs",
"fileName": "*.js",
"itemPath": Array [
"exports",
"./*",
"require",
],
"moduleName": "demo/*",
- "relativePath": "dist\\cjs/*.js",
+ "relativePath": "dist\\cjs\\*.js",
"resolvedPath": "D:\\tmp\\dist\\cjs\\*.js",
"subpath": "./*",
"type": "commonjs",
},
Object {
"condition": "import",
"directory": "D:\\tmp\\dist\\mjs",
"fileName": "*.js",
"itemPath": Array [
"exports",
"./*",
"import",
],
"moduleName": "demo/*",
- "relativePath": "dist\\mjs/*.js",
+ "relativePath": "dist\\mjs\\*.js",
"resolvedPath": "D:\\tmp\\dist\\mjs\\*.js",
"subpath": "./*",
"type": "module",
},
Object {
"condition": "types",
"directory": "D:\\tmp\\dist\\types\\sub-folder",
"fileName": "*.d.ts",
"itemPath": Array [
"exports",
"./sub-folder/*",
"require",
"types",
],
"moduleName": "demo/sub-folder/*",
- "relativePath": "dist\\types/sub-folder/*.d.ts",
+ "relativePath": "dist\\types\\sub-folder\\*.d.ts",
"resolvedPath": "D:\\tmp\\dist\\types\\sub-folder\\*.d.ts",
"subpath": "./sub-folder/*",
"type": "commonjs",
},
Object {
"condition": "require",
"directory": "D:\\tmp\\dist\\cjs\\sub-folder",
"fileName": "*.js",
"itemPath": Array [
"exports",
"./sub-folder/*",
"require",
"default",
],
"moduleName": "demo/sub-folder/*",
- "relativePath": "dist\\cjs/sub-folder/*.js",
+ "relativePath": "dist\\cjs\\sub-folder\\*.js",
"resolvedPath": "D:\\tmp\\dist\\cjs\\sub-folder\\*.js",
"subpath": "./sub-folder/*",
"type": "commonjs",
},
Object {
"condition": "types",
"directory": "D:\\tmp\\dist\\types\\sub-folder",
"fileName": "*.d.ts",
"itemPath": Array [
"exports",
"./sub-folder/*",
"import",
"types",
],
"moduleName": "demo/sub-folder/*",
- "relativePath": "dist\\types/sub-folder/*.d.ts",
+ "relativePath": "d
|
Testing
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading