add test framework
parent
9625b1be2c
commit
24f18546f6
|
@ -0,0 +1,5 @@
|
|||
module.exports = {
|
||||
transform: {
|
||||
'^.+\\.js$': 'babel-jest',
|
||||
},
|
||||
};
|
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,8 @@
|
|||
"description": "mirror all your public github repositories to your gitea server",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "npx esbuild src/index.js --bundle --outdir=dist/ --platform=node"
|
||||
"build": "esbuild src/index.js --bundle --outdir=dist/ --platform=node",
|
||||
"test": "jest"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -19,10 +20,14 @@
|
|||
"homepage": "https://github.com/jaedle/mirror-to-gitea#readme",
|
||||
"dependencies": {
|
||||
"@octokit/rest": "^21.0.2",
|
||||
"@types/jest": "^29.5.13",
|
||||
"p-queue": "^8.0.1",
|
||||
"superagent": "^10.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"esbuild": "0.24.0"
|
||||
"@babel/preset-env": "^7.25.4",
|
||||
"babel-jest": "^29.7.0",
|
||||
"esbuild": "0.24.0",
|
||||
"jest": "^29.7.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
function getRepositories() {
|
||||
|
||||
}
|
||||
|
||||
export default getRepositories;
|
|
@ -0,0 +1,7 @@
|
|||
import {default as get} from './get-github-repositories'
|
||||
|
||||
describe('get-github-repfalseositories', () => {
|
||||
it('fetches public repositories', () => {
|
||||
get();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue