@@ -38,17 +38,6 @@ describe("paths that should trigger python CI", () => {
3838 } ) ;
3939} ) ;
4040
41- describe ( "paths that should trigger Core CI" , ( ) => {
42- it . each ( [
43- "packages/compiler/package.json" ,
44- "packages/http/package.json" ,
45- "packages/openapi3/package.json" ,
46- ] ) ( "%s" , ( path ) => {
47- const areas = findAreasChanged ( [ path ] ) ;
48- expect ( areas ) . toEqual ( [ "Core" ] ) ;
49- } ) ;
50- } ) ;
51-
5241describe ( "paths that should trigger all isolated packages" , ( ) => {
5342 it . each ( [
5443 "eng/emitters/pipelines/templates/jobs/detect-api-changes.yml" ,
@@ -59,22 +48,22 @@ describe("paths that should trigger all isolated packages", () => {
5948 } ) ;
6049} ) ;
6150
62- it ( "Should return a combination of core and isolated packages" , ( ) => {
51+ it ( "Should return a combination of isolated packages" , ( ) => {
6352 const areas = findAreasChanged ( [
6453 "packages/http-client-csharp/src/constants.ts" ,
6554 "packages/http-client-java/src/emitter.ts" ,
6655 "packages/http-client-python/src/emitter.ts" ,
6756 "packages/compiler/package.json" ,
6857 ] ) ;
69- expect ( areas ) . toEqual ( [ "CSharp" , "Java" , "Python" , "Core" ] ) ;
58+ expect ( areas ) . toEqual ( [ "CSharp" , "Java" , "Python" ] ) ;
7059} ) ;
7160
72- it ( "Should return CSharp, Core and Java if .editorconfig is changed" , ( ) => {
61+ it ( "Should return CSharp, Java and Python if .editorconfig is changed" , ( ) => {
7362 const areas = findAreasChanged ( [ ".editorconfig" ] ) ;
74- expect ( areas ) . toEqual ( [ "CSharp" , "Java" , "Python" , "Core" ] ) ;
63+ expect ( areas ) . toEqual ( [ "CSharp" , "Java" , "Python" ] ) ;
7564} ) ;
7665
77- it ( "Should not return Core for .prettierignore, .prettierrc.json, cspell.yaml, eslint.config.json" , ( ) => {
66+ it ( "Should not trigger CI for .prettierignore, .prettierrc.json, cspell.yaml, eslint.config.json alone " , ( ) => {
7867 const areas = findAreasChanged ( [
7968 ".prettierignore" ,
8069 ".prettierrc.json" ,
@@ -87,7 +76,7 @@ it("Should not return Core for .prettierignore, .prettierrc.json, cspell.yaml, e
8776 expect ( areas ) . toEqual ( [ "CSharp" , "Java" , "Python" ] ) ;
8877} ) ;
8978
90- it ( "should return Core for random files at the root" , ( ) => {
79+ it ( "should not trigger any CI for random files at the root" , ( ) => {
9180 const areas = findAreasChanged ( [ "some.file" , "file/in/deep/directory" ] ) ;
92- expect ( areas ) . toEqual ( [ "Core" ] ) ;
81+ expect ( areas ) . toEqual ( [ ] ) ;
9382} ) ;
0 commit comments