<commit_before>import mapValues from 'lodash/mapValues'
import { setupBackgroundIntegrationTest } from 'src/tests/background-integration-tests'

describe('Backup feature', () => {
    it('should only select to back up the collections we want to back up', async () => {
        const setup = await setupBackgroundIntegrationTest()
        const backedUp = mapValues(
            setup.storageManager.registry.collections,
            (collectionDef, collectionName) => {
                return {
                    backup: collectionDef.backup ?? true,
                    watch: collectionDef.watch ?? true,
                }
            },
        )

        expect(backedUp).toEqual({
            pages: { backup: true, watch: true },
            visits: { backup: true, watch: true },
            bookmarks: { backup: true, watch: true },
            favIcons: { backup: true, watch: true },
            annotations: { backup: true, watch: true },
            annotBookmarks: { backup: true, watch: true },
            annotListEntries: { backup: true, watch: true },
            directLinks: { backup: true, watch: true },
            notifications: { backup: true, watch: true },<commit_msg>Explicilty mark page archives for backup<commit_after>import mapValues from 'lodash/mapValues'
import { setupBackgroundIntegrationTest } from 'src/tests/background-integration-tests'

describe('Backup feature', () => {
    it('should only select to back up the collections we want to back up', async () => {
        const setup = await setupBackgroundIntegrationTest()
        const backedUp = mapValues(
            setup.storageManager.registry.collections,
            (collectionDef, collectionName) => {
                return {
                    backup: collectionDef.backup ?? true,
                    watch: collectionDef.watch ?? true,
                }
            },
        )

        expect(backedUp).toEqual({
            pages: { backup: true, watch: true },
            readablePageArchives: { backup: true, watch: true },
            visits: { backup: true, watch: true },
            bookmarks: { backup: true, watch: true },
            favIcons: { backup: true, watch: true },
            annotations: { backup: true, watch: true },
            annotBookmarks: { backup: true, watch: true },
            annotListEntries: { backup: true, watch: true },
            directLinks: { backup: true, watch: true },
            notifications: { backup: true, watch: true },
{'fraction_non_alphanumeric': 0.10740144810941271, 'fraction_numerical': 0.0, 'mean_word_length': 2.1126408010012514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1074023', 'n_tokens_mistral': 622, 'n_tokens_neox': 601, 'n_words': 184}