mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-07-29 03:44:08 +00:00

* feat(cache): The cache is generalized to support Puppeteers and mobile terminals * chore: update cache test * chore: update cache test * chore: update cache test * docs: update cache doc * chore: update ai test command * chore: update ai test command * chore: update ai test command * chore: optimize cache logic * chore: update get dir path logic * chore: update get dir path logic
10 lines
347 B
TypeScript
10 lines
347 B
TypeScript
import { getCurrentExecutionFile } from '@/common/utils';
|
|
import { beforeEach, describe, expect, it } from 'vitest';
|
|
|
|
describe('TaskCache', () => {
|
|
it('should return the current execution file', () => {
|
|
const currentExecutionFile = getCurrentExecutionFile();
|
|
expect(currentExecutionFile).toBe('/tests/unit-test/util.test.ts');
|
|
});
|
|
});
|