File tree Expand file tree Collapse file tree 9 files changed +181
-94
lines changed
modules/runner-binaries-syncer/lambdas/runner-binaries-syncer Expand file tree Collapse file tree 9 files changed +181
-94
lines changed Original file line number Diff line number Diff line change 33 "singleQuote": true,
44 "trailingComma": "all",
55 "semi": true,
6- }
7-
6+ "importOrderSeparation": true,
7+ "importOrderSortSpecifiers": true,
8+ "importOrder": [
9+ "<THIRD_PARTY_MODULES>",
10+ "^[./]"
11+ ]
12+ }
Original file line number Diff line number Diff line change 1616 },
1717 "devDependencies" : {
1818 "@octokit/rest" : " ^18.12.0" ,
19+ "@trivago/prettier-plugin-sort-imports" : " ^3.1.1" ,
1920 "@types/jest" : " ^27.4.0" ,
2021 "@types/node" : " ^17.0.8" ,
2122 "@types/request" : " ^2.48.8" ,
3637 "axios" : " ^0.24.0" ,
3738 "tslog" : " ^3.3.1"
3839 }
39- }
40+ }
Original file line number Diff line number Diff line change 1- import { sync } from './syncer/syncer' ;
2- import { handler } from './lambda' ;
31import { mocked } from 'jest-mock' ;
42
3+ import { handler } from './lambda' ;
4+ import { sync } from './syncer/syncer' ;
5+
56jest . mock ( './syncer/syncer' ) ;
67
78describe ( 'Test download sync wrapper.' , ( ) => {
Original file line number Diff line number Diff line change 1- import { sync } from './syncer/syncer' ;
21import { logger } from './syncer/logger' ;
2+ import { sync } from './syncer/syncer' ;
33
44// eslint-disable-next-line
55export async function handler ( event : any , context : any ) : Promise < void > {
Original file line number Diff line number Diff line change 1- import { sync } from './syncer/syncer' ;
21import { logger } from './syncer/logger' ;
2+ import { sync } from './syncer/syncer' ;
33
44sync ( )
55 . then ( )
Original file line number Diff line number Diff line change 1- import { LogType , LogLevel } from './logger' ;
1+ import { LogLevel , LogType } from './logger' ;
22
33declare namespace NodeJS {
44 export interface ProcessEnv {
Original file line number Diff line number Diff line change 1- import { sync } from './syncer' ;
2- import listReleases from '../../test/resources/github-list-releases.json' ;
3- import listReleasesEmpty from '../../test/resources/github-list-releases-empty-assets.json' ;
4- import listReleasesNoLinux from '../../test/resources/github-list-releases-no-linux.json' ;
5- import listReleasesNoArm64 from '../../test/resources/github-list-releases-no-arm64.json' ;
61import { S3 } from 'aws-sdk' ;
72import axios from 'axios' ;
83import { request } from 'http' ;
94import { EventEmitter , PassThrough , Readable } from 'stream' ;
105
6+ import listReleasesEmpty from '../../test/resources/github-list-releases-empty-assets.json' ;
7+ import listReleasesNoArm64 from '../../test/resources/github-list-releases-no-arm64.json' ;
8+ import listReleasesNoLinux from '../../test/resources/github-list-releases-no-linux.json' ;
9+ import listReleases from '../../test/resources/github-list-releases.json' ;
10+ import { sync } from './syncer' ;
11+
1112const mockOctokit = {
1213 repos : {
1314 listReleases : jest . fn ( ) ,
Original file line number Diff line number Diff line change 11import { Octokit } from '@octokit/rest' ;
2- import { PassThrough } from 'stream' ;
32import { S3 } from 'aws-sdk' ;
43import AWS from 'aws-sdk' ;
54import axios from 'axios' ;
5+ import { PassThrough } from 'stream' ;
6+
67import { logger as rootLogger } from './logger' ;
78
89const logger = rootLogger . getChildLogger ( ) ;
You can’t perform that action at this time.
0 commit comments