refactor: Convert project from JavaScript to TypeScript
- Converted all .js files to .ts - Added TypeScript configuration (tsconfig.json) - Added ESLint and Prettier configuration - Updated package.json dependencies - Modified Docker and application configurations
This commit is contained in:
@@ -20,13 +20,13 @@ jest.mock('node:path', () => {
|
||||
const actual = jest.requireActual('node:path');
|
||||
return {
|
||||
...actual,
|
||||
join: (...args) => args.join('/'),
|
||||
resolve: (...args) => args.join('/'),
|
||||
join: (...args: string[]) => args.join('/'),
|
||||
resolve: (...args: string[]) => args.join('/'),
|
||||
};
|
||||
});
|
||||
|
||||
describe('deploy-commands.js', () => {
|
||||
let origEnv;
|
||||
let origEnv: typeof process.env;
|
||||
beforeAll(() => {
|
||||
origEnv = { ...process.env };
|
||||
process.env.CLIENT_ID = '12345';
|
||||
Reference in New Issue
Block a user