Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ beforeEach(async () => {
describe('init', () => {
it('should get project successfully', () => {
const project: { [key: string]: any } = proj.getProject();
expect(project.files.length).toBe(16);
expect(project.files.length).toBe(15);
});

it('should always have a default bot project file', () => {
Expand Down Expand Up @@ -126,7 +126,7 @@ describe('copyTo', () => {
const newBotProject = await proj.copyTo(locationRef);
await newBotProject.init();
const project: { [key: string]: any } = newBotProject.getProject();
expect(project.files.length).toBe(16);
expect(project.files.length).toBe(15);
});
});

Expand Down Expand Up @@ -406,7 +406,7 @@ describe('deleteAllFiles', () => {
const newBotProject = await proj.copyTo(locationRef);
await newBotProject.init();
const project: { [key: string]: any } = newBotProject.getProject();
expect(project.files.length).toBe(16);
expect(project.files.length).toBe(15);
await newBotProject.deleteAllFiles();
expect(fs.existsSync(copyDir)).toBe(false);
});
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/server/src/models/bot/botProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ export class BotProject implements IBotProject {
// deployment process
const root = this.dataDir;
const paths = await this.fileStorage.glob(
[pattern, '!(generated/**)', '!(runtime/**)', '!(recognizers/**)'],
[pattern, '!(generated/**)', '!(runtime/**)', '!(recognizers/**)', '!(scripts/**)', '!(settings/**)'],
root
);

Expand Down