"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const file_1 = require("../../src/util/file");
describe('util', () => {
    beforeEach(() => {
        jest.clearAllMocks();
    });
    describe('isJavascriptFile', () => {
        it('should return true for JavaScript files', () => {
            expect((0, file_1.isJavascriptFile)('file.js')).toBe(true);
            expect((0, file_1.isJavascriptFile)('file.cjs')).toBe(true);
            expect((0, file_1.isJavascriptFile)('file.mjs')).toBe(true);
        });
        it('should return true for TypeScript files', () => {
            expect((0, file_1.isJavascriptFile)('file.ts')).toBe(true);
            expect((0, file_1.isJavascriptFile)('file.cts')).toBe(true);
            expect((0, file_1.isJavascriptFile)('file.mts')).toBe(true);
        });
        it('should return false for non-JavaScript/TypeScript files', () => {
            expect((0, file_1.isJavascriptFile)('file.txt')).toBe(false);
            expect((0, file_1.isJavascriptFile)('file.py')).toBe(false);
            expect((0, file_1.isJavascriptFile)('file.jsx')).toBe(false);
            expect((0, file_1.isJavascriptFile)('file.tsx')).toBe(false);
        });
        it('should handle paths with directories', () => {
            expect((0, file_1.isJavascriptFile)('/path/to/file.js')).toBe(true);
            expect((0, file_1.isJavascriptFile)('C:\\path\\to\\file.ts')).toBe(true);
            expect((0, file_1.isJavascriptFile)('/path/to/file.txt')).toBe(false);
        });
    });
});
//# sourceMappingURL=file.test.js.map