chore(lint): migrate Jest lint rules from eslint to oxlint (#37787)

Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
Đỗ Trọng Hải
2026-02-08 16:44:42 +07:00
committed by GitHub
parent c4d2d42b3b
commit 563d9f1a3f
264 changed files with 1893 additions and 1952 deletions

View File

@@ -31,7 +31,7 @@ beforeEach(() => {
});
describe('assetUrl should prepend static asset prefix for relative paths', () => {
it.each(['', '/myapp'])("'%s' for relative path", app_root => {
test.each(['', '/myapp'])("'%s' for relative path", app_root => {
staticAssetsPrefixMock.mockReturnValue(app_root);
expect(assetUrl(resourcePath)).toBe(`${app_root}${resourcePath}`);
expect(assetUrl(absoluteResourcePath)).toBe(
@@ -41,7 +41,7 @@ describe('assetUrl should prepend static asset prefix for relative paths', () =>
});
describe('assetUrl should ignore static asset prefix for absolute URLs', () => {
it.each(['', '/myapp'])("'%s' for absolute url", app_root => {
test.each(['', '/myapp'])("'%s' for absolute url", app_root => {
staticAssetsPrefixMock.mockReturnValue(app_root);
expect(ensureStaticPrefix(absoluteResourcePath)).toBe(absoluteResourcePath);
});