mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 10:42:25 +02:00
Remove vitest-canvas-mock
code that I accidentally added back
This commit is contained in:
parent
73771aef15
commit
5432cf5377
@ -23,26 +23,13 @@ export default defineProject(({ mode }) => ({
|
|||||||
test: {
|
test: {
|
||||||
testTimeout: 20000,
|
testTimeout: 20000,
|
||||||
setupFiles: ["./test/fontFace.setup.ts", "./test/vitest.setup.ts"],
|
setupFiles: ["./test/fontFace.setup.ts", "./test/vitest.setup.ts"],
|
||||||
server: {
|
|
||||||
deps: {
|
|
||||||
inline: ["vitest-canvas-mock"],
|
|
||||||
optimizer: {
|
|
||||||
web: {
|
|
||||||
include: ["vitest-canvas-mock"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
sequence: {
|
sequence: {
|
||||||
sequencer: class Seqencer extends BaseSequencer {
|
sequencer: class Seqencer extends BaseSequencer {
|
||||||
async sort(files: [any, string][]) {
|
async sort(files: [any, string][]) {
|
||||||
files = await super.sort(files);
|
files = await super.sort(files);
|
||||||
|
|
||||||
// Sort files so that `inputs.test.ts` gets run first; otherwise, `inputs.test.ts` randomly breaks
|
// Sort files so that certain tests get run first
|
||||||
return files.sort((a, b) => {
|
return files.sort((a, b) => getTestOrder(a[1]) - getTestOrder(b[1]));
|
||||||
return getTestOrder(a[1]) - getTestOrder(b[1]);
|
|
||||||
b;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user