fix(plugin-annotations): Don't load core plugins in tests
This commit is contained in:
parent
6a7cc334ba
commit
31e7b50ba1
14 changed files with 96 additions and 114 deletions
|
@ -21,7 +21,7 @@ describe('Cutonfold Plugin Tests', () => {
|
|||
plugins: [annotationsPlugin],
|
||||
}
|
||||
// Note that we're not loading core plugins but the local plugin
|
||||
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] }, true)
|
||||
const Test = new Design({ plugins: [annotationsPlugin], parts: [part], noCorePlugins: true })
|
||||
const pattern = new Test()
|
||||
pattern.draft()
|
||||
const c = pattern.parts[0].test.paths.__macro_cutonfold_cutonfold_line
|
||||
|
@ -61,7 +61,7 @@ describe('Cutonfold Plugin Tests', () => {
|
|||
plugins: [annotationsPlugin],
|
||||
}
|
||||
// Note that we're not loading core plugins but the local plugin
|
||||
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] }, true)
|
||||
const Test = new Design({ plugins: [annotationsPlugin], parts: [part], noCorePlugins: true })
|
||||
const pattern = new Test()
|
||||
pattern.draft()
|
||||
expect(
|
||||
|
@ -86,7 +86,7 @@ describe('Cutonfold Plugin Tests', () => {
|
|||
plugins: [annotationsPlugin],
|
||||
}
|
||||
// Note that we're not loading core plugins but the local plugin
|
||||
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] }, true)
|
||||
const Test = new Design({ plugins: [annotationsPlugin], parts: [part], noCorePlugins: true })
|
||||
const pattern = new Test()
|
||||
pattern.draft()
|
||||
let c = pattern.parts[0].test.paths.__macro_cutonfold_cutonfold_line
|
||||
|
@ -126,7 +126,7 @@ describe('Cutonfold Plugin Tests', () => {
|
|||
plugins: [annotationsPlugin],
|
||||
}
|
||||
// Note that we're not loading core plugins but the local plugin
|
||||
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] }, true)
|
||||
const Test = new Design({ plugins: [annotationsPlugin], parts: [part], noCorePlugins: true })
|
||||
const pattern = new Test()
|
||||
pattern.draft()
|
||||
let c = pattern.parts[0].test.paths.__macro_cutonfold_cutonfold_line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue