scpl icon indicating copy to clipboard operation
scpl copied to clipboard

setup done

Open Xharry01X opened this issue 1 year ago • 2 comments

I updated the packages that are used in ScPL, lots of error while running the test cases.

Xharry01X avatar Aug 29 '24 08:08 Xharry01X

I don't think all those tests should fail? It seems to be trying to parse @!ShouldEqual as part of the shortcut file which causes a parse error in all of them

If you're on windows, maybe git switched them to CRLF so they don't match? In testconfig/runtest.ts, this should fix it:

			const infilepath = path.join(dirname, infile);
			const contents = fs.readFileSync(infilepath, "utf-8");
-			const [shortcut, expected] = contents.split(
+			const [shortcut, expected] = contents.split("\r").join("").split(
				"\n\n@!ShouldEqual --------------------------------\n\n"
			);

pfgithub avatar Aug 29 '24 16:08 pfgithub

It looks like .yarn/install-state is not supposed to be committed: https://yarnpkg.com/getting-started/qa. Since the project is still on yarn 1, the whole .yarn folder can be added to .gitignore

pfgithub avatar Aug 29 '24 16:08 pfgithub